Author Topic: i have searched the forums and have not found a solution  (Read 6658 times)

Offline dbreedt

  • Single posting newcomer
  • *
  • Posts: 6
i have searched the forums and have not found a solution
« on: October 21, 2012, 07:44:16 pm »
I recently got the c++ for dummies ebook from a friend
and downloaded code::blocks from the website. i am running windows vista service pack 1

i installed cb and tried to build and run the hello world test program but i get the message "helloworld - Debug" uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!] [my ANSWER IS  not ALREADY THERE. read the full post!]. Probably the toolchain path within the compiler options is not setup correctly?! Skipping...
Nothing to be done.


i tried messing about with the toolchain settings to no prevail. i tried to let it auto detect but it says '' could not auto-detect installation path of GNU GCC compiler do you want to use this compilers default installation directory? i searched these forums up and down and didnt find any solution .
the most helpful was one guy who discovered the mingw path was wrong (it was C:\MinGW)(default installation directory) he said that when he changed the pathway to C:\program files\codeblocks\MinGW\bin . i then tried that but it still didnt work so i tried searching my entire hard disk for mingw and GNU GCC and didnt find anything i also tried looking in the program files and in the appdata files . but i still cant find anything.

ive come to the conclusion (assumption) that codeblocks setup didnt install any compilers

Am i right? or is there something im missing?

i am very new to programming ive never even attempted it before today so i really dont know what to do

P.S. i have read the rules. i am not blaming c::b , i am just hoping somebody can tell me what the problem is and how to fix it
« Last Edit: October 21, 2012, 08:05:23 pm by dbreedt »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7790
    • My Best Post
Re: i have searched the forums and have not found a solution
« Reply #1 on: October 21, 2012, 09:01:17 pm »
Did you install a Compiler?
If not, what version of Code::Blocks was installed?
What was the filename of the Code::Blocks you installed?

Related thread http://forums.codeblocks.org/index.php/topic,16979.0.html

Tim S.
« Last Edit: October 22, 2012, 01:26:07 am by stahta01 »
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 dbreedt

  • Single posting newcomer
  • *
  • Posts: 6
Re: i have searched the forums and have not found a solution
« Reply #2 on: October 22, 2012, 08:11:56 am »
I installed the normal codeblocks 10.5

I think i may have found the solution though. the version i downloaded was 23 mb . i noticed this morning that there is another version that is 74mb with MinGW in the file name. i didnt notice this last time because i used my phones browser to download the install file and what i think happened was that my browser didnt completely load the page so i missed the other download link.

i am logged into my work pc at the moment so this is why ive noticed the other download link this morning.

i will download it today and let you know tomorrow weather it worked or not.

Thanks for the response! if you didnt ask for the file name i wouldnt have checked the website again :)


Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: i have searched the forums and have not found a solution
« Reply #3 on: October 22, 2012, 10:02:12 am »
I installed the normal codeblocks 10.5

I think i may have found the solution though. the version i downloaded was 23 mb . i noticed this morning that there is another version that is 74mb with MinGW in the file name. i didnt notice this last time because i used my phones browser to download the install file and what i think happened was that my browser didnt completely load the page so i missed the other download link.

i am logged into my work pc at the moment so this is why ive noticed the other download link this morning.

i will download it today and let you know tomorrow weather it worked or not.

Thanks for the response! if you didnt ask for the file name i wouldnt have checked the website again :)



If possible, use a more recent compiler.
I suggest TDM's gcc: http://tdm-gcc.tdragon.net/ .
It'S the recent version of the compiler we shipped with the release, which might lead to problems on win 7.

Offline dbreedt

  • Single posting newcomer
  • *
  • Posts: 6
Re: i have searched the forums and have not found a solution
« Reply #4 on: October 22, 2012, 01:10:02 pm »
Thanks Jens . i will kep that in mind but for now i want to try keep to the book for as long as possible (until i know waht im doing) . When i haave a deeper understanding of programming ill think about getting better software thanks :)

Offline dbreedt

  • Single posting newcomer
  • *
  • Posts: 6
Re: i have searched the forums and have not found a solution
« Reply #5 on: October 22, 2012, 09:52:02 pm »
I just installed the mingw codeblocks and it works fine!