Author Topic: Code Blocks using wrong compiler [Linux]  (Read 16637 times)

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Code Blocks using wrong compiler [Linux]
« Reply #15 on: March 09, 2008, 02:08:04 am »
I am having the same problem, i just intsalled code blocks on windows xp and i cant get it to compile.
I am looking in toolchain executables but i am not sure wat to do.

Which version of C::B?

If 8.02 the MinGW-compiler is integrated in installer and should be found at first run of C::B, if you do not install it (MinGW) in a very strange folder.

The textbox "Compilers Installation directory" contains the base-directory of MinGW compiler suite (e.g. "c:\MinGW").
The textareas in "Program Files" should contain the names of the executables  ("gcc.exe" as c-compiler "g++.exe" as c++-compiler and linker for dynamic libs and so on).

Offline Trent

  • Single posting newcomer
  • *
  • Posts: 4
Re: Code Blocks using wrong compiler [Linux]
« Reply #16 on: March 09, 2008, 02:23:50 am »
It is version 8.02 and in the program files for c compiler its has mingw32-gcc.exe and for c++ is has mingw32-g++.exe

Offline Trent

  • Single posting newcomer
  • *
  • Posts: 4
Re: Code Blocks using wrong compiler [Linux]
« Reply #17 on: March 09, 2008, 02:25:59 am »
I followed what you guys told taedron to do and the same things happened to me as what he said accept for when you guys went into toolchain executables i got lost

Offline Trent

  • Single posting newcomer
  • *
  • Posts: 4
Re: Code Blocks using wrong compiler [Linux]
« Reply #18 on: March 09, 2008, 02:32:05 am »
When i go to creat a new project i go Console Application and i choose C++ for the language and i choose
GNU GCC Compiler.   That is wat i have been doing at the school computer but it was using linux. Does that change now that i am using windows?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Code Blocks using wrong compiler [Linux]
« Reply #19 on: March 09, 2008, 09:25:25 am »
Can you please do what I wrote here and then post the output of your build log ?

moromete

  • Guest
Re: Code Blocks using wrong compiler [Linux]
« Reply #20 on: March 28, 2008, 08:12:34 am »
just add this directory in Toolchain executables Additional Paths
/usr/lib/ccache



[attachment deleted by admin]