Compiling code in CodeBlocks

Hello,

I had a problem with settings, to allow the code (which uses cURL) to compile in CodeBlocks, Windows 7. The original question is here: http://www.cplusplus.com/forum/beginner/159045/.

My question (same as the last post of the linked topic) remains. What did adding "-L. -lcurl" do so that code could now successfully compile? I would like to understand the meaning, process, and hopefully avoid similar issues in future.

Thank you,
T
Last edited on
Hi,

The man page explains things better than I can: http://linux.die.net/man/1/ld Scroll down to -l and -L.

Depending on how your system is set up you might not need -L. Try it without.

-L. adds the current directory to the library search path. In your other post you stated that you copied libcurl.dll to the project folder so I figured that would work.
Topic archived. No new replies allowed.