User forums > General (but related to Code::Blocks)
Linking error: crtbegin.o not found
lpcstr:
When trying to compile a C++ program I get the following error output:
--- Code: ---ld||cannot find crtbegin.o: No such file or directory|
ld||cannot find crtend.o: No such file or directory|
--- End code ---
I'm using Code::Blocks 10.05 and MinGW with GCC 4.5.2 on Windows 7 64-bit.
My search directories are as follows:
Linker:
--- Code: ---C:\MinGW\lib
C:\MinGW\lib\gcc\mingw32\4.5.2
--- End code ---
and if I look inside C:\MinGW\lib\gcc\mingw32\4.5.2 it contains both files. The only way I can get anything to compile is to copy these two files into my project folder. :(
lpcstr:
Ok, so copying those two files to C:\MinGW\lib is a fix, if that helps anyone with the same problem. Doe anyone know where the issue lies?
oBFusCATed:
Your compiler installation is broken probably...
MortenMacFly:
--- Quote from: oBFusCATed on February 01, 2011, 09:27:18 am ---Your compiler installation is broken probably...
--- End quote ---
Either that or you have an older MinGW in the PATH which is used instead of the one you are referring to. Do you have any other MinGW development environment installed that might have changed the PATH?
I am asking because this was a known bug with older MinGW compilers on Vista/Win7 which is fixed in 4.5.2 fur sure.
Jenna:
It does not need to be in path.
Just an installation or a rest of an installation in x:\MinGW (where x is any drive) is enough as far as I know.
Navigation
[0] Message Index
[#] Next page
Go to full version