User forums > Help
Using static libs of libcurl
smallpawn:
I know this is an old thread, but seeing that there are at list 2 people who didn't get a solution, I give my 2 cents:
- Go to "Project" -> "Build options..."
- Under "Compiler settings" select the "Other options" tab
- Add your options there as you would do in the command line, in your case it would be like this:
--- Code: ----DCURL_STATICLIB
-I ..\..\include
-L ..\..\lib\
-lcurl
-lws2_32
-lwinmm
--- End code ---
Good luck!
oBFusCATed:
--- Quote from: smallpawn on May 17, 2010, 04:42:45 pm ---
--- Code: ----DCURL_STATICLIB
-I ..\..\include
-L ..\..\lib\
-lcurl
-lws2_32
-lwinmm
--- End code ---
--- End quote ---
This suggestion is wrong/incorrect, because:
1. You set both compiler and linker options only in the compiler part of the build options
2. There is GUI for setting
Below I've where/how you should set the compiler/linker options in C::B's GUI (first open the dialog Project -> Build options):
Compiler options:
"-DCURL_STATICLIB" -> add "CURL_STATICLIB" to Compiler settings -> Defines
"-I ..\..\include " -> add "..\..\include " in Search Directories -> Compiler
Linker options:
"-L ..\..\lib\" -> add "..\..\lib" in Search Directories -> Linker
"-lcurl", "-lws2_32", "-lwinmm" -> add "curl", "ws2_32", "winmm" in Linker settings -> Link libraries
Navigation
[0] Message Index
[*] Previous page
Go to full version