News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Many build project messages!

Started by jiao, January 30, 2007, 05:15:43 AM

Previous topic - Next topic

jiao

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?

jiao

Also, after each time it compiles a file, I see in the build log:

mingw32-g++.exe: /Ox: No such file or directory

Biplab

Remove /Ox compiler option. That is meant for MSVC compilers.  :)
Be a part of the solution, not a part of the problem.

jiao

#3
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.

Biplab

Goto Project > Build options menu. Then click on Compiler > Other options tab. See if the option is there.
Be a part of the solution, not a part of the problem.

stahta01

Quote from: 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.

Check the "Settings" -> "Compiler and Debugger" Tab "Directories" Tab "Resource Compiler"
Also check Tab "Directories" Tab "Resource Compiler" under Project > Build options menu
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

jiao

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!

stahta01

#7
Quote from: 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!

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
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

jiao

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.

dje