To have my .cpp and .h files a little bit sorted up pending on their responsibilitie I decided to put them into seperate folders I used the following structure: root | -CMakeLists.txt [rootCmakeList] src | -main.cpp …….| ……. math …….| …….-CMakeLists.txt[mathCmakeList] …….-Algebra.h …….-Algebra.cpp …….XML[xmlCmakeList] …….| …….-CMakeLists.txt …….-AwesomeXML.h …….-AwesomeXML.cpp The [rootCmakeList] looks: The [mathCmakeList] looks: The [xmlCmakeList] looks: So far so
Tag: include-path
How to specify the include and lib path of pgm library when making PCA-SIFT code
I am trying to make the PCA-SIFT code (pcasift-0.91nd.tar.gz) in this webpage: http://www.cs.cmu.edu/~yke/pcasift/. After running ./configure which is OK, the make command report that the C compiler can not find header pgm.h: image.cc:18:22: fatal error: pgm.h: No such file or directory #include ^ compilation terminated. There is a webpage in internet which discussed this issue: http://ubuntuforums.org/showthread.php?t=1918422. A solution was stated
Eclipse CDT: Symbol ‘cout’, ‘map’, ‘vector’, ‘size_t’, etc could not be resolved
There is a lot of posts about that and I have already tried to apply solutions that have worked for others, but still not for me. First, everything was fine with a c++ project I am working on under Linux, with Eclipse Indigo, gcc-4.7.1, cx11 activated, and Gentoo Linux. My project uses a home built static library. I made some
What are the GCC default include directories?
When I compile a very simple source file with gcc I don’t have to specify the path to standard include files such as stdio or stdlib. How does GCC know how to find these files? Does it have the /usr/include path hardwired inside, or it will get the paths from other OS components? Answer In order to figure out the