Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: sh0ckerturb0 on February 04, 2011, 02:52:42 am

Title: build and run? n00b here
Post by: sh0ckerturb0 on February 04, 2011, 02:52:42 am
I just installed code blocks fresh in windows 7 64 bit, did the "hello world" test but "build and run"  is unresponsive? I'm a n00b so don't get to mad if this is an easy answer but I'm seriously stuck. I read the sticky and searched the forums but couldn't find anything.. a google search didn't help either. Thanks
Title: Re: build and run? n00b here
Post by: Pecan on February 04, 2011, 02:33:09 pm
I just installed code blocks fresh in windows 7 64 bit, did the "hello world" test but "build and run"  is unresponsive? I'm a n00b so don't get to mad if this is an easy answer but I'm seriously stuck. I read the sticky and searched the forums but couldn't find anything.. a google search didn't help either. Thanks

Which version of CB did you install? Where did you obtain it?
Did you use the wizard to create the "Hello World" project?
What compiler are you using?

Go to Settings->Compiler and Debugger->Other Settings
and set Compiler logging to "Full command line".

Do a build. Then post the results of the build log here.

Title: Re: build and run? n00b here
Post by: stahta01 on February 04, 2011, 08:53:52 pm
Go to Settings->Compiler and Debugger->Other Settings
and set Compiler logging to "Full command line".

Do a build. Then post the results of the build log here.

The FAQ that states above in more detail
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F
Title: Re: build and run? n00b here
Post by: sh0ckerturb0 on February 05, 2011, 12:29:25 am
I have 10.05 installed from the codeblocks website. I didn't use any wizard i just started a new empty file and went from there. Using GNU GCC Compiler. I took a screen capture of what is happening.

http://www.youtube.com/watch?v=OQ-wa5z818g
Title: Re: build and run? n00b here
Post by: Jenna on February 05, 2011, 12:40:14 am
There are two versions of C::B on our site, one with and one without MinGW included in the package.
Are you sure you have a compiler installed.

If you do not use a project the default compiler is used to compile a single file.
If you hava a compiler is it set as your default compiler ?
Title: Re: build and run? n00b here
Post by: sh0ckerturb0 on February 05, 2011, 01:13:20 am
There are two versions of C::B on our site, one with and one without MinGW included in the package.
Are you sure you have a compiler installed.

If you do not use a project the default compiler is used to compile a single file.
If you hava a compiler is it set as your default compiler ?

how stupid. I figured it out. The directory for the compiler wasn't auto detected and was set to "C:/ming" for some WEIRD reason. I just clicked auto detect and it found the correct path and fixed my problem... Thanks for the help guys!
Title: Re: build and run? n00b here
Post by: gasp3r on February 12, 2011, 03:48:05 pm
How did you detect your compiler location?
I got the same problem. I couldnot locate it. Please explain it in detail. I installed CodeBlocks 10.05[not the mingw version].

On building the 'hello world' program, i dont get any response. suggest me a solution.
Title: Re: build and run? n00b here
Post by: gasp3r on February 12, 2011, 05:47:22 pm
I dint install the Ming version. Correct me if I m wrong..
I can use any compiler, right? I got a TurboC++ compiler installed in my PC already. It works only in windows7 32-bit version(that too, not in full screen mode). Can i use that compiler?
I changed these settings. What additional details should I change?
-->Settings-->Compiler and Debugger Settings-->Search Directories-->Compiler-->Add-->Browse to Bin folder
Title: Re: build and run? n00b here
Post by: MortenMacFly on February 12, 2011, 07:10:01 pm
Can i use that compiler?
Never tried, but as this compiler is REALLY old, it may not work, indeed. What you can try is to map this compiler to the borland compiler and hopefully the command line is still compatible. If not, choose a compiler that is not ~15 years old.
Title: Re: build and run? n00b here
Post by: gasp3r on February 13, 2011, 01:07:18 pm
Thank you for the info regarding the compiler. So my only option is to install a Ming version. Is there an alternative :)?
Title: Re: build and run? n00b here
Post by: MortenMacFly on February 13, 2011, 01:14:16 pm
Thank you for the info regarding the compiler. So my only option is to install a Ming version. Is there an alternative :)?
Sure. C::B supports a wide range of compilers, including MinGW. Have a look at the compiler options and the C::B manual/WiKi for more information.

However, it's not up to me to decide which compiler you should use. It depends on your project, so you better decide for yourself...?!