User forums > Help
Can´t build and run because the project has not been built ???
pel:
--- Quote from: MortenMacFly on December 21, 2007, 09:44:57 pm ---
--- Quote from: pel on December 21, 2007, 09:09:10 pm ---actually my path to the compiler is ok!?
--- End quote ---
Try using C:\MinGW only (and notice the red information on your screen shot about that).
And BTW: Are you aware that you installed just the GCC core package? C++ (mingw32-g++) is missing (btw).
With regards, Morten.
--- End quote ---
I used c:\mingw only now but its not logical and furthermore its not working ;-) i have installed mingw 5.1.3 i think is there anything more complete or newer ? you have a direct link ?
mingw32-g++.exe <-- although i wanna compile only C programms not c++ still i would like to know where i find this file --> mingw32-g++.exe
about this error: Execution of 'mingw32-g++.exe -o bin\Debug\Zugverwaltung.exe obj\Debug\Zugaufgabe.o' in 'D:\ADV-Programmier-Projekte\Zugverwaltung' failed.
why is codeblocks IDE using the mingw32-g++.exe which does not exist on my pc ??? this file codeblocks should use: mingw32-gcc.exe !!!
and why is codeblcoks using the Zugaufgabe.o file and not the Zugaufgabe.c file ????
I think the problem codeblocks IDE having is that i dont have the mingw32-g++.exe on my pc but its set in the compiler settings which leads to that error.
I have just read this on the wiki of codeblocks: MinGW must be located on the same partition as the files you want to compile - MinGW is on my partition C:\ but my files which must be compiled are on D:\project folder etc... so is this bad?
wobien:
--- Quote from: pel on December 22, 2007, 11:53:51 am ---why is codeblocks IDE using the mingw32-g++.exe which does not exist on my pc ??? this file codeblocks should use: mingw32-gcc.exe !!!
--- End quote ---
Try this: right click the file in filemanager, and choose properties. In advanced you see compilor variable. It shoud be CPP for a c++ file and CC for a c file.
--- Quote from: pel on December 22, 2007, 11:53:51 am ---and why is codeblcoks using the Zugaufgabe.o file and not the Zugaufgabe.c file ????
--- End quote ---
In the compile fase of the proces it compiles the .c file and builds the .o file.
In the link fase it uses the .o files to build the executable.
pel:
--- Quote from: wobien on December 22, 2007, 12:40:14 pm ---
--- Quote from: pel on December 22, 2007, 11:53:51 am ---why is codeblocks IDE using the mingw32-g++.exe which does not exist on my pc ??? this file codeblocks should use: mingw32-gcc.exe !!!
--- End quote ---
Try this: right click the file in filemanager, and choose properties. In advanced you see compilor variable. It shoud be CPP for a c++ file and CC for a c file.
--- Quote from: pel on December 22, 2007, 11:53:51 am ---and why is codeblcoks using the Zugaufgabe.o file and not the Zugaufgabe.c file ????
--- End quote ---
In the compile fase of the proces it compiles the .c file and builds the .o file.
In the link fase it uses the .o files to build the executable.
--- End quote ---
regarding that image everything seems fine so what?
Jenna:
In "Toolchain Executables" you can use "mingw32-gcc.exe" as "Linker for dynamic libs:".
But if you do so you cannot link c++ programs.
The better way is to install "mingw32-g++.exe".
If you use the mingw-installer (what is recommended by mingw.org for MinGW-5.1.3) you can easily install the g++-suite.
Nevertheless C::B is compiled with the gcc 4.2.1-dw2 version of theMinGW-compiler-suite, MinGW5.1.3 uses gcc-3.4.5 afaik.
MortenMacFly:
If you insist on *not* to install the G++ compiler (that's fine if you plan to develop C only) then simply change the linker executable to mingw32-gcc.exe, too and your problem should be solved.
Edit: Ooops. Jens and my post have crossed. Jens was a bit earlier (:cry:) but basically he tells you the same.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version