News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Code Blocks not building

Started by Missinginaction, September 02, 2011, 05:45:53 AM

Previous topic - Next topic

Missinginaction

Hi! I recently install the program on my Win 7 64bit system. However it doesn't seems to be building. I tried building my code yet I have no respond from the program. I tried the hotkey and the menu and it still refuse to work. If I click "run" the command box will show up if I choose to run without building. Is there anyway I can fix this problem?

P.S. I am using the 10.05 version

ollydbg

What exact problem did you meet?
Can you give us a step by step introduction?
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Jenna

Do you have a valid compiler installed, and are the settings for the toolchaion correct ?
"Settings -> Compiler and debugger -> [your compiler] -> Toolchain executables"

emark.mark20

im having the same problem myself

ollydbg

Quote from: emark.mark20 on September 03, 2011, 02:48:41 AM
im having the same problem myself
Tell us the problem in details. What's your problem? How to reproduce? Did you install a correct compiler?....
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

emark.mark20

Quote from: ollydbg on September 03, 2011, 02:57:03 AM
Quote from: emark.mark20 on September 03, 2011, 02:48:41 AM
im having the same problem myself
Tell us the problem in details. What's your problem? How to reproduce? Did you install a correct compiler?....

http://forums.next.codeblocks.org/index.php/topic,15207.0.html

i posted a similar topic. btw im using windows 7, my codeblocks is 10.05 and my problem is that my program won't build at all.

ollydbg

Quote from: emark.mark20 on September 03, 2011, 11:22:04 PM
http://forums.next.codeblocks.org/index.php/topic,15207.0.html
i posted a similar topic. btw im using windows 7, my codeblocks is 10.05 and my problem is that my program won't build at all.
That post still need more details, I can't help you unless you give me more details and steps.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Missinginaction

Well I talked to my college professor about this problem, it seems that compiler is not working on the 64 bit system so that's why its not building. I tried to install a compiler for the 64 bit system but still don't have any luck on the program. Code blocks failed to detect the compiler and I even tried to manually open the location of the compiler on the tool executable but it can't detect the compiler either (on the list of executable it only shows compilers for the 32 bit system). So now I am still stuck with code blocks not able the build the program. Is there any way that I can get other compilers on the OS? Or is there any other solutions to the problem?

stahta01

@Missinginaction:

What is the name and version of the Compiler you installed?

What was the installation path of the Compiler you installed?

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]

Jenna

Normally 32-bit applications run without problems on win7 64-bit.
And therefore the compiler should also work.


Missinginaction

in my case the 32 bit compiler doesn't work, so I am still looking for a solution.

Perotto

And I'm having the same problem.  :( I'm using Windows XP SP3 32-bit. I've installed Codeblocks 10.05 with MinGW.

When I try to run a program, nothing happens, and the build log is empty. But in my school Codeblocks 10.05 on the same operation system works properly. Maybe, I set up a wrong compiler or wrong settings?

Which compiler will work for my system and how to install it into the Codeblocks?

stahta01

Quote from: stahta01 on September 08, 2011, 05:55:09 AM
@Missinginaction:

What is the name and version of the Compiler you installed?

What was the installation path of the Compiler you installed?

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]

gchow83

I figured out why I was having problems with the compiler. minGW was installed in the same program file as C++ so you have to change the default file location go to

"Settings -> Compiler and debugger -> [your compiler] -> Toolchain executables"

then

under compiler instillation directory change the location to where you installed C++ the old one should look like

this ----> C:\minGW

the new one should look like

this -----> C:\Program Files\CodeBlocks\MinGW

couldn't find an answer to this problem so I posted.  ;D

jukels

Thanks for that tip. It definitely worked for me...

Quote from: gchow83 on March 27, 2012, 03:28:16 PM
I figured out why I was having problems with the compiler. minGW was installed in the same program file as C++ so you have to change the default file location go to

"Settings -> Compiler and debugger -> [your compiler] -> Toolchain executables"

then

under compiler instillation directory change the location to where you installed C++ the old one should look like

this ----> C:\minGW

the new one should look like

this -----> C:\Program Files\CodeBlocks\MinGW

couldn't find an answer to this problem so I posted.  ;D