Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: manutd on November 28, 2006, 01:17:49 am

Title: Compiling projects
Post by: manutd on November 28, 2006, 01:17:49 am
When I try to build and run a new project, Code::Blocks comes up with a dialog asking me whether I want to build the project now. When I select yes, it displays the same dialog and does nothing. What am I doing wrong?
Title: Re: Compiling projects
Post by: stahta01 on November 28, 2006, 01:22:41 am
Verify that "Messages" Window is open; look at "Build Log" for errors. Sometime errors don't show up in "Build Messages"

To open the "Messages" Window, use "View" and click on "Messages" so it has a check mark in front of it.

Tim S
Title: Re: Compiling projects
Post by: manutd on November 28, 2006, 01:23:52 am
No, the project never compiles. The dialog just won't go away. Using g++ under cygwin, I can build the project fine.
Title: Re: Compiling projects
Post by: stahta01 on November 28, 2006, 01:31:10 am
Turn on compiler logging using:

"settings" -> "Compiler and Debugger"
Make sure the correct compiler is selected.
Click on tab "Other"
Set compiler logging to "Full Command Line"

Then use "Build" -> "rebuild" to rebuild the project.

Post the "Build Log" if you don't see the problem yourself.

Tim S
Title: Re: Compiling projects
Post by: manutd on November 28, 2006, 02:21:58 am
Stupid fix, my compiler path was wrong  :P