News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

help please?

Started by moominboy, May 30, 2011, 12:27:58 PM

Previous topic - Next topic

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

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

moominboy

Thank you! I assume checking Full Logging would've done exactly that? But I'll do that anyway. Cheers!

moominboy

Now I'm getting errors that libintl-8 is missing? collect2: ld returned 53 exit status

   Have tried to re-install C::B again and it's pinging up loads of errors.  :x

stahta01

Re-Install Your Compiler!!!!!!
Code::Blocks is NOT a Compiler.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]