cURL
Haxx ad
libcurl
Automatically get a mirror near you





COMPARE PRICES:
Digital cameras, MP3 Players, Camcorders, Mobile phones, PDA, Computers, Electronics LCD monitors, Printers, Notebook, DVD Players, Motherboards, TV, ipod, Processors. See all...

Shopping cart software
Online collaboration software

SourceForge.net Logo

cURL > Mailing List > Monthly Index > Single Mail

curl-library Archives

Library issue (again?)

From: Max L. Eidswick <max_at_eidswick.com>
Date: Thu, 22 Nov 2007 10:23:34 -0700

Hi, Yang (and all) --

Happy Thanksgiving (I will be more thankful when I can get this too link :-)).

I am still trying to get the win32 build to work on a simple project (only a call to curl_easy_init).

I have made each build use the /MT (or debug version) library for both the libcurl build and the test source module. The source has
only one call to curl_easy_init to get started.

Is the /MT multi-threaded library the correct one? I have also defined the CURL_STATICLIB in the preprocessor directives for the
test module based on a posting I read, but I am not sure if this is needed, correct, etc.

When CURL_STATICLIB is not defined, the errors disappear, of course, but the external entry point for curl_easy_init cannot be
found.

Thanks for any direction,

Max

----- snip

// ---------------------------------------------------------------------
void main ( int argc, char* argv[] ){ // start of Red Paw Services code

        // -----------------------------------------------------------------
        // local variables
        // -----------------------------------------------------------------
        CURL *curl ;
        CURLcode res ;

        // -----------------------------------------------------------------
        // cURL initialization
        // -----------------------------------------------------------------
        curl = curl_easy_init ( ) ;

----- snip

Linking...
   Creating library .\Debug/RedPawComms.lib and object .\Debug/RedPawComms.exp LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts
with use of other libs; use /NODEFAULTLIB:library
curllib.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_unbind_s referenced in function _Curl_ldap
curllib.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_msgfree referenced in function _Curl_ldap
curllib.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_next_entry referenced in function _Curl_ldap
curllib.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ber_free referenced in function _Curl_ldap
curllib.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_next_attribute referenced in function _Curl_ldap
curllib.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_memfree referenced in function _Curl_ldap
curllib.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_value_free_len referenced in function _Curl_ldap
curllib.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_get_values_len referenced in function _Curl_ldap
curllib.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_first_attribute referenced in function _Curl_ldap
curllib.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_get_dn referenced in function _Curl_ldap
curllib.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_first_entry referenced in function _Curl_ldap
curllib.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_search_s referenced in function _Curl_ldap
curllib.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_simple_bind_s referenced in function _Curl_ldap
curllib.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_init referenced in function _Curl_ldap
curllib.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_set_option referenced in function _Curl_ldap
curllib.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_err2string referenced in function _Curl_ldap
.\Debug/RedPawComms.exe : fatal error LNK1120: 16 unresolved externals Build log was saved at "file://c:\Documents and
Settings\max\My Documents\RPS\RPSV7Dvlmt\RedPawComms\Debug\BuildLog.htm"
RedPawComms - 17 error(s), 2 warning(s)
Received on 2007-11-22

These mail archives are generated by hypermail.

donate! Page updated October 19, 2006.
web site info