Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: jiao on January 30, 2007, 05:15:43 am

Title: Many build project messages!
Post 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?
Title: Re: Many build project messages!
Post by: jiao on February 03, 2007, 04:17:18 pm
Also, after each time it compiles a file, I see in the build log:

mingw32-g++.exe: /Ox: No such file or directory
Title: Re: Many build project messages!
Post by: Biplab on February 03, 2007, 04:30:30 pm
Remove /Ox compiler option. That is meant for MSVC compilers.  :)
Title: Re: Many build project messages!
Post by: jiao on February 03, 2007, 04:50:54 pm
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.
Title: Re: Many build project messages!
Post by: Biplab on February 03, 2007, 04:55:17 pm
Goto Project > Build options menu. Then click on Compiler > Other options tab. See if the option is there.
Title: Re: Many build project messages!
Post by: stahta01 on February 03, 2007, 05:03:12 pm
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
Title: Re: Many build project messages!
Post by: jiao on February 03, 2007, 05:07:45 pm
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!
Title: Re: Many build project messages!
Post by: stahta01 on February 03, 2007, 05:36:17 pm
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
Title: Re: Many build project messages!
Post by: jiao on February 03, 2007, 05:44:39 pm
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.
Title: Re: Many build project messages!
Post by: dje on February 03, 2007, 07:03:09 pm
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