Thanks, Paulsm. The compiler could find the *.lib file now.
Yet there are tons of errors there:
-------------------------------------------------------
Compiling...
main.cpp
Linking...
LIBCMT.lib(tolower.obj) : error LNK2005: __tolower already defined in LIBCD.lib(tolower.obj)
LIBCMT.lib(tolower.obj) : error LNK2005: _tolower already defined in LIBCD.lib(tolower.obj)
LIBCMT.lib(getenv.obj) : error LNK2005: _getenv already defined in LIBCD.lib(getenv.obj)
LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other libs; use /NODEFAULTLIB:library
libcurl.lib(easy.obj) : error LNK2001: unresolved external symbol __imp__WSACleanup@0
libcurl.lib(easy.obj) : error LNK2001: unresolved external symbol __imp__WSAStartup@8
libcurl.lib(md5.obj) : error LNK2001: unresolved external symbol ___security_cookie
libcurl.lib(netrc.obj) : error LNK2001: unresolved external symbol ___security_cookie
libcurl.lib(http_digest.obj) : error LNK2001: unresolved external symbol ___security_cookie
libcurl.lib(parsedate.obj) : error LNK2001: unresolved external symbol ___security_cooki
----------------------------------------------------------------------
Did you meet this before ? I am using Visual C++ 6.0, my program is nothing more than using some curl_easy routines there.
Also I downloaded that static lib online, only with two files: curl/curl.h file and libcurl.lib.
Anyway it is linked, Thanks a lot!
-Kun
Quote:
Originally Posted by paulsm4
Hi -
1. If you're using the Visual Studio IDE, then:
a) Select your project
b) <Right-cick>, Settings,
[C++] tab,
"Preprocessor" category (drop-down list),
c) add "CURL_STATICLIB" to the list
2. If you've got a Makefile, then just add "/DCUR_STATICLIB" to the compile line.
'Hope that helps .. PSM
PS:
"CFLAGS" is just a generic term for "C/C++ compiler flags"
|