User forums > General (but related to Code::Blocks)
Moving to GCC question
tiwag:
--- Quote from: Michael on January 18, 2006, 04:56:45 pm ---Interesting :).
--- End quote ---
it is because gcc is executed from the project directory (where the *.cbp resides) and all pathes are relative to this directory.
so
"./mylib/src" + "../include/mylib.h"
and
"./mylib/src" + "../../mylib/include/mylib.h"
are ok then
TDragon:
--- Quote from: troels on January 18, 2006, 05:02:46 pm ---I can afford to wait - a while yet :)
--- End quote ---
You'd have to; even if the bug is fixed in the current version of GCC, it'll probably still be months before the MinGW team gets to it. I've never personally seen problems with search paths in the larger GCC projects I've worked on (witness Code::Blocks :)).
troels:
--- Quote from: TDragon on January 18, 2006, 05:12:23 pm ---
--- Quote from: troels on January 18, 2006, 05:02:46 pm ---I can afford to wait - a while yet :)
--- End quote ---
You'd have to; even if the bug is fixed in the current version of GCC...
--- End quote ---
Oh, but I have a feeling that this is a C::B bug (rightclick -> "Build File" works), not a GCC bug.
And they work fast here on this project :)
(I can't believe that you've already moved to wxAUI, that was bloody fast)
Regards
Troels
Michael:
--- Quote from: tiwag on January 18, 2006, 05:02:55 pm ---
--- Quote from: Michael on January 18, 2006, 04:56:45 pm ---Interesting :).
--- End quote ---
it is because gcc is executed from the project directory (where the *.cbp resides) and all pathes are relative to this directory.
--- End quote ---
Yes, I have remarked it. My solution would have been to add the 2 include directories in Compiler (relative paths) and then modifiy/add the #include opportunely. Your solution is shorter and avoid to add all the include directories. Thank you for the explanation.
Michael
Michael:
--- Quote from: troels on January 18, 2006, 05:17:54 pm ---
--- Quote from: TDragon on January 18, 2006, 05:12:23 pm ---
--- Quote from: troels on January 18, 2006, 05:02:46 pm ---I can afford to wait - a while yet :)
--- End quote ---
You'd have to; even if the bug is fixed in the current version of GCC...
--- End quote ---
(rightclick -> "Build File" works)
--- End quote ---
In this case is not the compiler invoked from the directory where the source file is? And, if I remember correctly, the include paths are then correct.
Michael
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version