User forums > Help
help please?
moominboy:
I realise this must be a common problem for noobs, and I may have started in the wrong place but.... :?
Trying out my very first C++ stuff with Hello World! and constantly get this error;
Compiling: main.cpp
Linking console executable: bin\Debug\hello.exe
collect2: cannot find `ld'
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
I have googled and realise that it's looking for a linker library? But when I try to add Libs through the Settings>Compiler & Debugger>Linker route there are no lib files that I can see in the Code:Blocks files. I have checked for All File types and added wxscintilla.dll as I read that was to be added somewhere but still no joy.
I have searched the forum as well but 'ld' brings up hits like couLD, shouLD, wouLD etc. Even searching for the collect2: cannot find `ld' message doesn't provide much help with my problem?
Any help is greatly appreciated folks. Thank you!
oBFusCATed:
Read this: http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F
moominboy:
Ok, I've told it to provide full logging, but in the command there is no mention of 'ld'?
Since I first posted I have re-installed so everything is fresh.
This is what it spits out....
mingw32-g++.exe -o bin\Debug\hi.exe obj\Debug\main.o
collect2: cannot find `ld'
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
oBFusCATed:
mingw32-g++.exe calls ld internally, probably your mingw install is broken.
Reinstall and if the problems persists ask in a forum/mailing list which provides support Mingw.
moominboy:
Thank you! I assume checking Full Logging would've done exactly that? But I'll do that anyway. Cheers!
Navigation
[0] Message Index
[#] Next page
Go to full version