Author Topic: Does codeblocks work with windows7 64bit?  (Read 6207 times)

Offline pickupstixx

  • Single posting newcomer
  • *
  • Posts: 3
Does codeblocks work with windows7 64bit?
« on: December 12, 2011, 08:09:08 am »
Hey everyone, I'm new to c++ and I'm trying to learn it, but when i try to build and run it, i get this error ""firstproject - Debug" uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Probably the toolchain path within the compiler options is not setup correctly?! Skipping..."

I've reinstalled it a few times, but no luck.
Help please?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Does codeblocks work with windows7 64bit?
« Reply #1 on: December 12, 2011, 08:14:48 am »
[YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]
Yes, I am working on Windows 64 bit and C::B is working just fine. Hence you may need to update your compiler (you didn't tell which version of C::B you are using, so this might not apply).

Generally please comply with the forum rules you agreed to when registering and search before you post. This is a common thing to do in forums as it helps not to answer the same question over and over again. Thank you.
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 pickupstixx

  • Single posting newcomer
  • *
  • Posts: 3
Re: Does codeblocks work with windows7 64bit?
« Reply #2 on: December 12, 2011, 08:17:44 am »
I'm using 10.5, and I downloaded the mingw version. How would i update my compiler?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Does codeblocks work with windows7 64bit?
« Reply #3 on: December 12, 2011, 08:28:06 am »
I'm using 10.5, and I downloaded the mingw version. How would i update my compiler?
When 10/05 came out there was no compiler available that was working on Windows 7. So this is a known issue. The solution is easy: Un-install C::B with compiler; download and install the version without compiler. Then download a recent MinGW, e.g. from here:
http://tdm-gcc.tdragon.net/
(it comes with a nice installer btw) and install it wherever you want to (for example in a sub-folder of C::B, called "MinGW"). Then run C::B, go to the compiler settings, -> select "tool chain executables" and hit "Auto detect" to let C::B find the compiler. This will only work, if you installed MinGW into a standard path's. Alternatively you can also simply point C::B to the folder you installed MinGW into.

BTW: This is roughly the 20th time, this step-by-step instruction is written. In addition you'll find it in the WiKi and the FAQ's of C::B. Have a look there for some more details, if needed.
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 pickupstixx

  • Single posting newcomer
  • *
  • Posts: 3
Re: Does codeblocks work with windows7 64bit?
« Reply #4 on: December 12, 2011, 08:35:10 am »
Alright, thanks so much. Also, Sorry for not searching the forum before asking the question.