User forums > Using Code::Blocks

compiler issues

(1/3) > >>

xLordRADx:
I'm having several problems.

1.
When I compile using the rev3736 I get this: "hw7-2 - Release" uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Skipping..." where hw7-2 is my project name.

I have CB searching for the GNU GCC Compiler in both the CB folder and a folder containing a manual installation of MiniGW. I've tried telling it search directly in the "bin" folders as well where I can see the mingw32-g++.exe among others in Windows Explorer. So, what am I doing wrong here?

2.
When I create a project in rev3736, the wizard gives me a choice between debug and/or  release configurations. What does this mean? Sorry if this is a noob question.

3.
When I load the "stable" release of CB, I get the error: "Execution of command 'svn.exe' failed (error 2: the system cannot find the file specified.)" What does this mean and/or how can I fix it?

4. I don't remember what build I had, but before I upgraded to rev3736, my program was compiling (getting errors), but (once I fixed the errors) wasn't generating the binary executable file. I was getting a message with the address to the minigw folder, the address to my program, and the message: "mingw32-g++.exe: no input files." As I cannot even compile right now with the new build (or my stable build for that matter), I don't know if this is still an issue, but it likely is. Advice would be appreciated.

Thank you all in advance.

stahta01:

--- Quote from: xLordRADx on March 22, 2007, 06:40:27 am ---I'm having several problems.

1.
When I compile using the rev3736 I get this: "hw7-2 - Release" uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Skipping..." where hw7-2 is my project name.

I have CB searching for the GNU GCC Compiler in both the CB folder and a folder containing a manual installation of MiniGW. I've tried telling it search directly in the "bin" folders as well where I can see the mingw32-g++.exe among others in Windows Explorer. So, what am I doing wrong here?

--- End quote ---

Try right clicking on project, pick "Build Options", verify that the correct compiler is selected, Click on OK.
Say yes if it asks to set targets.


--- Quote from: xLordRADx on March 22, 2007, 06:40:27 am ---2.
When I create a project in rev3736, the wizard gives me a choice between debug and/or  release configurations. What does this mean? Sorry if this is a noob question.

--- End quote ---

A debug version of a program normally is compiled so it works better with the debugger; things like symbols and use of debugger libraries are common. The release version is often striped of symbols to make it a smaller file.


--- Quote from: xLordRADx on March 22, 2007, 06:40:27 am ---3.
When I load the "stable" release of CB, I get the error: "Execution of command 'svn.exe' failed (error 2: the system cannot find the file specified.)" What does this mean and/or how can I fix it?

--- End quote ---

You need to install svn client. I suggest using subversion from http://subversion.tigris.org/project_packages.html
In addition, I also install tortoisesvn from http://tortoisesvn.tigris.org/; this is a easy to use GUI Client but it does NOT supply an svn.exe


--- Quote from: xLordRADx on March 22, 2007, 06:40:27 am ---4. I don't remember what build I had, but before I upgraded to rev3736, my program was compiling (getting errors), but (once I fixed the errors) wasn't generating the binary executable file. I was getting a message with the address to the minigw folder, the address to my program, and the message: "mingw32-g++.exe: no input files." As I cannot even compile right now with the new build (or my stable build for that matter), I don't know if this is still an issue, but it likely is. Advice would be appreciated.

Thank you all in advance.

--- End quote ---

Turn on full compiler logging by
"Settings" -> "Compiler and Debugger"
Verify your compiler is selected (if it is the only compiler you use make sure it is the default by clicking on "Set Default")
Select "Other Settings"
Change "Compiler Logging" to "Full command Line"
Click on "OK"

Tim S

xLordRADx:
1. If I'm using the MinGW compiler, which do I select in the list? GNU GCC? Because that's what I'm using when I get ""Console application - default" uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Skipping..."

killerbot:
what's the compiler specified in he release target in your build options ?

xLordRADx:
I'm not sure what you mean. Where do I find the release target? When I open build options and go to search directories I have "C:\Program Files\MinGW\bin".

Navigation

[0] Message Index

[#] Next page

Go to full version