Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: jiao on January 30, 2007, 05:15:43 am
-
Hi, when I rebuild my project, I press f9, it asks me if I want to build the project, I press yes and it compiles a file and then stops. I press f9 again, and it asks me AGAIN is I want to build the project then it compiles another file and stops. and so on 4-5 times until it finally links the whole file and runs.. Is this normal?
The project consists of 10 files and I use a main header (i.e. every one of my .cpp has the #include "main.h" and only that as an include). How can I make it compile everything at once?
-
Also, after each time it compiles a file, I see in the build log:
mingw32-g++.exe: /Ox: No such file or directory
-
Remove /Ox compiler option. That is meant for MSVC compilers. :)
-
Thanks! Found it!
Also, I notice this at some point:
Compiling: resource.rc
gcc: and\: No such file or directory
gcc: Settings\Justin\My\: No such file or directory
gcc: Documents\apps\CodeBlocks\MinGW\include: No such file or directory
probably unrelated, and it doesn't cause any problems as it compiles fine now using feb2 nightly.
-
Goto Project > Build options menu. Then click on Compiler > Other options tab. See if the option is there.
-
Thanks! Found it!
Also, I notice this at some point:
Compiling: resource.rc
gcc: and\: No such file or directory
gcc: Settings\Justin\My\: No such file or directory
gcc: Documents\apps\CodeBlocks\MinGW\include: No such file or directory
probably unrelated, and it doesn't cause any problems as it compiles fine now using feb2 nightly.
Check the "Settings" -> "Compiler and Debugger" Tab "Directories" Tab "Resource Compiler"
Also check Tab "Directories" Tab "Resource Compiler" under Project > Build options menu
-
Ok I removed the directory from "Settings" -> "Compiler and Debugger" Tab "Directories" Tab "Resource Compiler"
I guess there isn't supposed to be anything there.
Thanks! Great support here!
-
Ok I removed the directory from "Settings" -> "Compiler and Debugger" Tab "Directories" Tab "Resource Compiler"
I guess there isn't supposed to be anything there.
Thanks! Great support here!
It will normally re-add the what C::B thinks is the correct directory on the next restart of C::B if the directory is blank or missing.
I assumed from your error that you had minGW mis-installed or a bad directory setting.
Tim S
-
Yup it re-added itself after I restarted even though I don't need that directory:
Compiling: resource.rc
gcc: and\: No such file or directory
gcc: Settings\Justin\My\: No such file or directory
gcc: Documents\root\apps\CodeBlocks\MinGW\include: No such file or directory
Compiling: settings.cpp
Compiling: socket.cpp
It might be related to the whitespace bug for the resource compiler from a while ago.
-
Hi !
No space in project or install path because of windres !
Already 2 threads about this:
http://forums.codeblocks.org/index.php?topic=5079.new;topicseen#new (http://forums.codeblocks.org/index.php?topic=5079.new;topicseen#new)
http://forums.codeblocks.org/index.php?topic=5063.new;topicseen#new (http://forums.codeblocks.org/index.php?topic=5063.new;topicseen#new)
Dje