User forums > Help

Using static libs of libcurl

<< < (2/3) > >>

MortenMacFly:

--- Quote from: stahta01 on October 26, 2009, 10:44:20 pm ---PS: This is a topic for a beginner programing site.

--- End quote ---
I'm afraid this is indeed not the right forum. We do not discuss CURL compiling issues here, but C::B issues. Try in a CURL related forum. Another hint I can give: Try to find a simple project that uses CURL and see what compiler/linker parameters they use and adopt yur project accordingly. It's probably also an issue with the CURL libs you have - they may not be compatible or built in a wrong way... who knows? We don't. "CURL guys" might...

Roog:
Well actually it's a C::B problem, since I do get it to work from the command line:


--- Quote ---In the commandline the following code works well:

--- Code: ---gcc -o simple simple.c -DCURL_STATICLIB -I ..\..\include -L ..\..\lib\ -lcurl -lws2_32 -lwinmm

--- End code ---

--- End quote ---

But how am I supposed to add -DCURL_STATICLIB to C::B?

Jenna:

--- Quote from: Roog on October 27, 2009, 10:47:16 am ---Well actually it's a C::B problem, since I do get it to work from the command line:
[...]
But how am I supposed to add -DCURL_STATICLIB to C::B?

--- End quote ---

You see it's not a C::B, but a configuration problem.
And configuration problems are in fact user problems.

Jus add CURL_STATICLIB to the defines in your projects build options.

maninthewind:
I also encounter this problem .
Did you solve it?

maninthewind:
 :)
hi,sorry for my poor english.
I found the right version   "libcurl-7.16.4-win32-ssl"  from http://curl.cs.pu.edu.tw/download
This lib also needs libs : libeay32.dll,libssh2.dll,libssl32.dll
Remember that add -CURL_STATICLIB to "other options" .
Now my test runs well.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version