I'm having trouble defining include directoroes for C::B after transferring everything from a VS2010 project.
My directory structure looks like this:
\_ MyProj.cbp <-- New Code::Blocks project
\_ MyProj.sln <-- Existing Visual Studio solution
In MySource.cpp I #include <MyProj/MyHeader.hpp> . However, I get a fatal error that MyHeader.hpp cannot be found. I'm using <> headers because I am building a library and the headers will be available in the API.
In "Project>Build Options>Search Directories", I've added ../inc. What else do I need to do in C::B?
Normally yes, however the project (with hundreds of source files) was created like this and works well in VS2010. The end user of the library still uses VS, but I've switched to linux so no VS for me. I'd like to make a code::blocks project that uses the same source so that it can be developed in a parallel environment (Linux and windows). Other than the <> which should be available to any C++ compiler, there is no compiler/IDE/platform-specific code.
The reason that we use <> is that this is a library and some of the header file include each other. Since it's a library, it's designed to go into a compiler's include folder (like with <boost/..>). We want to keep the same headers for our development and the distributed release identical so we include <> instead of with "".
Edit: The <> isn't actually the main problem. I replaced the <> in the first source file with "" and still got the same fatal error.