cURL / Mailing Lists / curl-library / Single Mail

curl-library

defining HTTP_ONLY doesn't disable all protocols

From: Alex Loukissas <alex_at_maginatics.com>
Date: Tue, 18 Sep 2012 16:34:58 -0700

Hello,

I'm trying to build a static version of libcurl /w openSSL using
MSVC++ 2012 and I defined HTTP_ONLY, as per
http://curl.haxx.se/docs/install.html

However, I get linkage problems when trying to link the https.c sample
code with the libcurl.lib file:

1>libcurl.lib(pop3.obj) : error LNK2001: unresolved external symbol
Curl_sasl_create_plain_message
1>libcurl.lib(smtp.obj) : error LNK2001: unresolved external symbol
Curl_sasl_create_plain_message
1>libcurl.lib(pop3.obj) : error LNK2001: unresolved external symbol
Curl_sasl_create_login_message
1>libcurl.lib(smtp.obj) : error LNK2001: unresolved external symbol
Curl_sasl_create_login_message
1>libcurl.lib(pop3.obj) : error LNK2001: unresolved external symbol
Curl_sasl_create_cram_md5_message
1>libcurl.lib(smtp.obj) : error LNK2001: unresolved external symbol
Curl_sasl_create_cram_md5_message
1>libcurl.lib(pop3.obj) : error LNK2001: unresolved external symbol
Curl_sasl_create_digest_md5_message
1>libcurl.lib(smtp.obj) : error LNK2001: unresolved external symbol
Curl_sasl_create_digest_md5_message
1>libcurl.lib(pop3.obj) : error LNK2001: unresolved external symbol
Curl_sasl_create_ntlm_type1_message
1>libcurl.lib(smtp.obj) : error LNK2001: unresolved external symbol
Curl_sasl_create_ntlm_type1_message
1>libcurl.lib(pop3.obj) : error LNK2001: unresolved external symbol
Curl_sasl_create_ntlm_type3_message
1>libcurl.lib(smtp.obj) : error LNK2001: unresolved external symbol
Curl_sasl_create_ntlm_type3_message
1>libcurl.lib(pop3.obj) : error LNK2001: unresolved external symbol
Curl_sasl_cleanup
1>libcurl.lib(smtp.obj) : error LNK2001: unresolved external symbol
Curl_sasl_cleanup

These disappear when I define CURL_DISABLE_POP3 and CURL_DISABLE_SMTP.
Should we perhaps add these two when user defines HTTP_ONLY?

--
Alex Loukissas
Member of Technical Staff - Maginatics, Inc.
www.maginatics.com
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-09-19