Author Topic: New Install, New User, Modest Knowledge, Probably initial setting problem  (Read 8610 times)

Offline darvon

  • Single posting newcomer
  • *
  • Posts: 6
New user, non-Software Engineer.

New install.

I didn't get a Compilers auto-detection window with launch.

Settings are on GCC.  Trying to build vanilla Console program.  First build.  no luck.


Build log:

Quote
-------------- Build: Release in test2 ---------------

Compiling: main.cpp
Execution of 'mingw32-g++.exe -Wall -fexceptions  -O2     -c "C:\Documents and Settings\printer\Desktop\C++\test2\main.cpp" -o obj\Release\main.o' in 'C:\Documents and Settings\printer\Desktop\C++\test2' failed.
Nothing to be done.

Nothing to be done.


I am guessing it is a simple setting problem, but I am clueless.

Help, please.


Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Did you install the MinGW GCC Compiler?
If so, what is the path you installed it in?
What OS? example Windows XP or Windows Vista

What version/SVN of Code::Blocks?
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 Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Is the toolchain-setting correctly ?
Do you have the mingw32-g++.exe in the bin directory below the toolchains master-path.
If it is named differently, fix the toolchain.

Offline darvon

  • Single posting newcomer
  • *
  • Posts: 6
Did you install the MinGW GCC Compiler?

I attempted to.  I believe installation completed successfully. How would i check for successful installation?

I believe the version is 5.1.4

Quote
If so, what is the path you installed it in?
I selected the default.  I have searched the HD and find folders at

c:/mingw

Quote

What OS? example Windows XP or Windows Vista

XP

Quote
What version/SVN of Code::Blocks?

8.02

Offline darvon

  • Single posting newcomer
  • *
  • Posts: 6
Is the toolchain-setting correctly ?


Do you have the mingw32-g++.exe in the bin directory below the toolchains master-path.
If it is named differently, fix the toolchain.

I am sorry but I do not understand what the toolchain is.  How would I find the toolchain setting? How would I find the toolchain master path?  How would I fix the toolchain?

mingw32-g++.exe is found at c:\Program Files\CodeBlocks\MinGW\bin
« Last Edit: October 25, 2009, 02:50:58 pm by darvon »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
"Settings -> Compiler and debugger... -> Global compiler settings -> [the compiler you use] -> [tab] Toolchain executables"

Offline darvon

  • Single posting newcomer
  • *
  • Posts: 6
"Settings -> Compiler and debugger... -> Global compiler settings -> [the compiler you use] -> [tab] Toolchain executables"


The toolchains setting is

C:\MinGW

search finds only

mingw32-g++.exe is found at c:\Program Files\CodeBlocks\MinGW\bin



mingw32-gcc file is at C:\MinGW\bin



--------------------

FINISH

That was the problem.  I reset toolchain to

C:\Program Files\CodeBlocks\MinGW


And everything compiled correctly.


Let me explain how I got here for others.

- First installed 802 from "Dummies" CD and got a "using invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Nothing to do" error.  I checked the Settings, but didn't see the "toolchain" tab (or rather didn't know it was useful) saw the settings at G++ and hit dead end.

- So reinstalled from Internet and got same error.

- Searched internet for error message.  stumbled over a mini-ming install and loaded and did that, which produced the code in C:\ming

- Got posted error, which was progress but not much.

- Found this forum.

- Reset toolchain to c:\Program Files\CodeBlocks\MinGW\bin  that was there all along.

- Works fine.


Ongoing question.  Can I de-install materials at c:\mingw   ???  Are they superfluous?








« Last Edit: October 25, 2009, 03:32:18 pm by darvon »

Galindal

  • Guest
Re: New Install, New User, Modest Knowledge, Probably initial setting problem
« Reply #7 on: December 27, 2009, 05:30:16 am »
Hello Darvon,

I'm glad to hear you managed to find the solution to your problem.

I also just recently bought the 7 in 1 c++ book for dummies, and I am using all the same default settings you were, and of course, I am getting the same error message.  I also searched the forum, and found that same post by Jens to NorthNinja that you added to this post.  I followed all those same instructions about the toolchains and bin folders, but alas, I am still getting that message.

"Hello-Debug" uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!].  Skipping...
Nothing to be done.

I am using the same compiler, same version of code blocks, and the same path, but the one difference I can see is that my OS is Windows Vista, could that be the problem?

Also, while searching the forum I noticed a lot of people seem to be having this problem, and we all seem to be using the same book for dummies.  I just thought it was funny that a book that prides itself on being for total beginners baffles all of us.  Maybe I should wait for someone to publish an even easier to use book for 5 year-olds?  Oh well, good luck on your road to mastering c++, and thanks in advance to you or anyone else out there that may have some advice on this subject.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: New Install, New User, Modest Knowledge, Probably initial setting problem
« Reply #8 on: December 27, 2009, 05:44:12 am »
@Galindal
Install an Windows Vista compatible version of MinGW GCC.

This code
Code
gcc.exe -v
should return the below or higher version
if has "mingw-vista special" MUST be r3 or higher.
Quote
gcc version 3.4.5 (mingw-vista special r3)

Tim S.
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