Author Topic: Problem building...  (Read 4449 times)

mark.coffman8713

  • Guest
Problem building...
« on: October 08, 2008, 08:45:52 pm »
I am fairly new to programming and just switched from python to c++ for my computer science class. I downloaded code::block for my pc and everything goes fine until i try to run a program, e.g. "Hello, World!". I select build and run, and get the message "It seems this program has not been built yet. Would you like to build it now?". I click yes and it returns the same message, and keeps going to that message every time i click yes... Any idea what's going on? I've reinstalled the program a couple times...

mark.coffman8713

  • Guest
Re: Problem building...
« Reply #1 on: October 08, 2008, 09:41:26 pm »
p.s. if i just click build, i get this message...

Compiling: main.cpp
Execution of 'mingw32-g++.exe -Wall -fexceptions  -O2     -c "C:\Program Files\CodeBlocks\CSCI\Homework5\main.cpp" -o obj\Release\main.o' in 'C:\Program Files\CodeBlocks\CSCI\Homework5' failed.
Nothing to be done.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: Problem building...
« Reply #2 on: October 09, 2008, 08:34:49 am »
What version of Code::Blocks?
What version of Windows?
What version of the MinGW GCC Compiler?

If you are running Windows Vista, I suggest downloading the newest MinGW GCC 3.4.5 Compiler. The one packaged with Code::Blocks 8.02 had two bugs I know of. Did not work with Vista right and False "Insert disk into Drive D" Warning.

Tim S
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Problem building...
« Reply #3 on: October 09, 2008, 09:51:23 am »
The one packaged with Code::Blocks 8.02 had two bugs I know of. Did not work with Vista right and False "Insert disk into Drive D" Warning.
The time we packaged C::B with this release of MinGW(GCC) we did not know of the bug (neither the MinGW team knew). So it's best if you download the current release of the MinGW compiler suite that has this bug fixed, namely gcc-3.4.5-20060117-3:
...which is:
http://downloads.sourceforge.net/mingw/gcc-core-3.4.5-20060117-3.tar.gz
and:
http://downloads.sourceforge.net/mingw/gcc-g%2B%2B-3.4.5-20060117-3.tar.gz

BTW: A search the forums would have revealed that, too.
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