Author Topic: Many build project messages!  (Read 4993 times)

jiao

  • Guest
Many build project messages!
« 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?

jiao

  • Guest
Re: Many build project messages!
« Reply #1 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

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: Many build project messages!
« Reply #2 on: February 03, 2007, 04:30:30 pm »
Remove /Ox compiler option. That is meant for MSVC compilers.  :)
Be a part of the solution, not a part of the problem.

jiao

  • Guest
Re: Many build project messages!
« Reply #3 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.
« Last Edit: February 03, 2007, 04:56:57 pm by jiao »

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: Many build project messages!
« Reply #4 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.
Be a part of the solution, not a part of the problem.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Many build project messages!
« Reply #5 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
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

jiao

  • Guest
Re: Many build project messages!
« Reply #6 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!

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Many build project messages!
« Reply #7 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
« Last Edit: February 03, 2007, 05:38:07 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

jiao

  • Guest
Re: Many build project messages!
« Reply #8 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.

Offline dje

  • Lives here!
  • ****
  • Posts: 683
Re: Many build project messages!
« Reply #9 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=5063.new;topicseen#new

Dje