News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Installation Problem ld.exe

Started by CEinNYC, November 04, 2010, 04:05:57 PM

Previous topic - Next topic

CEinNYC

Noob here to CodeBlocks, and trying to compile initial programs (circa "Hello World!" level), and I'm encountering this problem

ld.exe cannot find -lstrmbase
ld.exe cannot find -lz


I do have MinGW installed and using the most up to date version of CodeBlocks.   I find that this is a common problem on forums, but the resolution options are either inconsistent or dated to previous versions of CodeBlocks/Windows.

Any suggestions?  This is for a class and I"m the sole PC user in the class (Apple users dominate the class).  So, I'm out here alone.   :shock:

Thanks for any advice!

stahta01

Turn ON FULL Compiler Logging!!!

http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

Post info about your Compiler! Name and Version?

Find a site that supports your Compiler for most questions like this.

Do the missing libraries exist as standard in the Compiler?
Or, do you have the Libraries installed that the Compiler can not find?

Path to the Libraries?

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]

Ceniza

Just delete the libraries from the project settings if you do not really need them (z and strmbase)... which, for a nearly "Hello World" project, you will most likely not.

CEinNYC

Thanks for the replies. Still no luck but I'm on the path.  (Sans, deleting libraries, but that may be my last resort).


stahta01

#4
Quote from: CEinNYC on November 05, 2010, 04:51:26 PM
Thanks for the replies. Still no luck but I'm on the path.  (Sans, deleting libraries, but that may be my last resort).



Try installing the z library.

Edit: And, delete the strmbase from your library list.

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]

jamec9869


stahta01

Quote from: jamec9869 on November 18, 2010, 04:09:58 AM
I've the same problem

Find a site that supports your compiler and post there!!

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]

Jenna

Quote from: stahta01 on November 18, 2010, 05:18:21 AM
Quote from: jamec9869 on November 18, 2010, 04:09:58 AM
I've the same problem

Find a site that supports your compiler and post there!!

Tim S.
He will not answer.
It was just spambot and the account is deleted now.