Code::Blocks Forums
User forums => Help => Topic started by: Ancient Dragon on August 28, 2009, 07:23:56 pm
-
Compiling: main.cpp
Execution of 'g++.exe.lnk -Wall -fexceptions -g -c C:\dvlp\HelloWorld\main.cpp -o obj\Debug\main.o' in 'C:\dvlp\HelloWorld' failed.
Nothing to be done.
I just installed C::B with MiniGW compiler on 64-bit Vista Home Premium (I also have VC++ 2008 Express installed). At first C::B produced error that it could not find the compiler. I finally got that figured out, but now it produces the agove error. I looked in the MiniGW bin folder and there is no program named "g++.exe.lnk". Nor did it produce a *.o file from the *.cpp file.
Anyone know what is wrong?
-
I looked in the MiniGW bin folder and there is no program named "g++.exe.lnk".
Install the GCC / G++ compiler. Just MinGW is not enough. Follow the instructions on the MinGW webpage.
-
I just installed C::B with MiniGW compiler on 64-bit Vista Home Premium
NOTE: The MinGW GCC packaged with Code::Blocks 8.02 is not good enough for normal Vista; not idea about Home Edition.
What version of MinGW did you install?
Tim S.
-
What makes me wonder is g++.exe.lnk.
It seems your g++ in the toolchain points to a link of to g++.exe not to th executable itself.
That does not work from inside C::B !!!
-
Thanks for your comments. I uninstalled C::B, installed MiniGW in c:\MiniGW (the default), then reinstalled C::B without MiniGW. Tried to compiled Hello World c++ again, and it failed with the same problem as before.
Ok, I finally figured out the problem. I had to go into the toolchain executables window and reset the compiler and linker to both use g++.exe instead of the default g++.exe.lnk.
-
Ok, I finally figured out the problem. I had to go into the toolchain executables window and reset the compiler and linker to both use g++.exe instead of the default g++.exe.lnk.
I never saw g++.exe.lnk as default value for the cpp-compiler the default value set by C::B is ming32-g++.exe .
So please don't blame C::B for a configuration error.
And I told you that most likely your toolchain is not set up correctly.
It would have been easier to check this before uninstalling and reinstalling C::B and MinGW.
-
So please don't blame C::B for a configuration error.
Since I installed C::B with all defaults (location etc) there is no other reason for that to have happened other than faulty C::B installation program. Oh well, its working now, so I'm not going to moan about that any more. C::B developer team did an outstanding job writing that IDE :)
And I told you that most likely your toolchain is not set up correctly.
It would have been easier to check this before uninstalling and reinstalling C::B and MinGW.
Yes you are right about that one. I had seen that several times but I thought (wrongly) that the linker would be a different program than the compiler.