Author Topic: build and run? n00b here  (Read 5855 times)

Offline sh0ckerturb0

  • Single posting newcomer
  • *
  • Posts: 3
build and run? n00b here
« 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

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2777
Re: build and run? n00b here
« Reply #1 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.


Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: build and run? n00b here
« Reply #2 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
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline sh0ckerturb0

  • Single posting newcomer
  • *
  • Posts: 3
Re: build and run? n00b here
« Reply #3 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

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: build and run? n00b here
« Reply #4 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 ?

Offline sh0ckerturb0

  • Single posting newcomer
  • *
  • Posts: 3
Re: build and run? n00b here
« Reply #5 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!

Offline gasp3r

  • Single posting newcomer
  • *
  • Posts: 3
Re: build and run? n00b here
« Reply #6 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.

Offline gasp3r

  • Single posting newcomer
  • *
  • Posts: 3
Re: build and run? n00b here
« Reply #7 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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: build and run? n00b here
« Reply #8 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline gasp3r

  • Single posting newcomer
  • *
  • Posts: 3
Re: build and run? n00b here
« Reply #9 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 :)?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: build and run? n00b here
« Reply #10 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...?!
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ