News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Compiling projects

Started by manutd, November 28, 2006, 01:17:49 AM

Previous topic - Next topic

manutd

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?

stahta01

#1
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
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]

manutd

No, the project never compiles. The dialog just won't go away. Using g++ under cygwin, I can build the project fine.

stahta01

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
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]

manutd

Stupid fix, my compiler path was wrong  :P