curl-library
Re: Build Curl Library with Visual Studio 2005
Date: Tue, 18 Apr 2006 02:09:57 +0100 (BST)
Thanks man :)
--- Surfman19_at_gmx.at wrote:
> Hello,
> here my short tutorial to build curl-7.15.3 library
> with visual studio 2005!
>
>
> 1.) Build the curl-7.15.3 library:
>
> changes in lib/config-win32.h
> #define HAVE_SSL_H 1 <--- because i want to use
> ssl
>
> Project Settings:
> Preprocessor Definitions:
> WIN32
> _DEBUG
> _WINDOWS
> _USRDLL
> BUILDING_LIBCURL
> USE_SSLEAY <--- only needed for ssl
> USE_OPENSSL <--- only needed for ssl
> DCURL_STATICLIB
>
> Additional Dependencies: "ws2_32.lib winmm.lib
> libeay32.lib ssleay32.lib
> ...
> only needed for ssl ...
>
> 2.) Testcode:
> #include <stdio.h>
> #include <curl/curl.h>
>
> int main(void)
> {
> CURL *curl;
> CURLcode res;
>
> curl = curl_easy_init();
> if(curl) {
> /* First set the URL that is about to receive
> our POST. This URL can
> just as well be a https:// URL if that is
> what should receive the
> data. */
> curl_easy_setopt(curl, CURLOPT_URL,
> "http://www.rafb.net/paste/paste.php");
> /* Now specify the POST data */
> curl_easy_setopt(curl, CURLOPT_POSTFIELDS,
>
"lang=C%2B%2B&nick=&desc=&cvt_tabs=No&text=curlTest;)");
>
> /* Perform the request, res will get the return
> code */
> res = curl_easy_perform(curl);
>
> /* always cleanup */
> curl_easy_cleanup(curl);
> }
> return 0;
> }
>
> 3.) Configurations for the Testcode Project:
> Preprocessor Definitions:
> WIN32
> _DEBUG
> _CONSOLE
> CURL_STATICLIB
>
> Additional Dependencies: curllib.lib
>
>
> 4.) Compile Result:
> ------ Rebuild All started: Project: curl_test,
> Configuration: Debug Win32
> ------
> Deleting intermediate and output files for project
> 'curl_test',
> configuration 'Debug|Win32'
> Compiling...
> main.cpp
> Compiling manifest to resources...
> Linking...
> Starting pass 1
> Processed /DEFAULTLIB:uuid.lib
> Processed /DEFAULTLIB:MSVCRTD
> Processed /DEFAULTLIB:OLDNAMES
> Searching libraries
> Searching C:\curl-7.15.3\lib\Debug\curllib.lib:
> Found _curl_easy_cleanup
> Referenced in main.obj
> Loaded curllib.lib(easy.obj)
> Processed /DEFAULTLIB:LIBCMTD
> Found _Curl_ssl_init
> Referenced in curllib.lib(easy.obj)
> Loaded curllib.lib(sslgen.obj)
> Found __imp__WSACleanup_at_0
> Referenced in curllib.lib(easy.obj)
> Loaded curllib.lib(WS2_32.dll)
> Found __imp__WSAStartup_at_8
> Referenced in curllib.lib(easy.obj)
> Loaded curllib.lib(WS2_32.dll)
> Found _Curl_global_host_cache_dtor
> Referenced in curllib.lib(easy.obj)
> Loaded curllib.lib(hostip.obj)
> Found _Curl_open
> Referenced in curllib.lib(easy.obj)
> Loaded curllib.lib(url.obj)
> Found _Curl_perform
> Referenced in curllib.lib(easy.obj)
> Loaded curllib.lib(transfer.obj)
> Found _Curl_hash_destroy
> Referenced in curllib.lib(easy.obj)
> Referenced in curllib.lib(url.obj)
> Loaded curllib.lib(hash.obj)
> Found _Curl_getinfo
> Referenced in curllib.lib(easy.obj)
> Loaded curllib.lib(getinfo.obj)
> Found _Curl_cookie_init
> Referenced in curllib.lib(easy.obj)
> Referenced in curllib.lib(url.obj)
> Loaded curllib.lib(cookie.obj)
> Found _curl_strequal
> Referenced in curllib.lib(sslgen.obj)
> Referenced in curllib.lib(url.obj)
> Referenced in curllib.lib(cookie.obj)
> Loaded curllib.lib(strequal.obj)
> Found _Curl_ossl_init
> Referenced in curllib.lib(sslgen.obj)
> Loaded curllib.lib(ssluse.obj)
> Found __IMPORT_DESCRIPTOR_WS2_32
> Referenced in curllib.lib(WS2_32.dll)
> Referenced in curllib.lib(WS2_32.dll)
> Loaded curllib.lib(WS2_32.dll)
> Found _Curl_inet_ntop
> Referenced in curllib.lib(hostip.obj)
> Loaded curllib.lib(inet_ntop.obj)
> Found _Curl_share_unlock
> Referenced in curllib.lib(hostip.obj)
> Referenced in curllib.lib(url.obj)
> Referenced in curllib.lib(transfer.obj)
> Referenced in curllib.lib(cookie.obj)
> Loaded curllib.lib(share.obj)
> Found _curl_maprintf
> Referenced in curllib.lib(hostip.obj)
> Referenced in curllib.lib(url.obj)
> Referenced in curllib.lib(cookie.obj)
> Loaded curllib.lib(mprintf.obj)
> Found _Curl_freeaddrinfo
> Referenced in curllib.lib(hostip.obj)
> Loaded curllib.lib(hostip4.obj)
> Found _Curl_is_resolved
> Referenced in curllib.lib(hostip.obj)
> Loaded curllib.lib(hostthre.obj)
> Found _Curl_digest_cleanup
> Referenced in curllib.lib(url.obj)
> Loaded curllib.lib(http_digest.obj)
> Found _curl_slist_free_all
> Referenced in curllib.lib(url.obj)
> Referenced in curllib.lib(cookie.obj)
> Loaded curllib.lib(sendf.obj)
> Found _Curl_multi_rmeasy
> Referenced in curllib.lib(url.obj)
> Loaded curllib.lib(multi.obj)
> Found __imp__closesocket_at_4
> Referenced in curllib.lib(url.obj)
> Referenced in curllib.lib(transfer.obj)
> Referenced in curllib.lib(hostthre.obj)
> Referenced in curllib.lib(multi.obj)
> Loaded curllib.lib(WS2_32.dll)
> Found _Curl_ntlm_cleanup
> Referenced in curllib.lib(url.obj)
> Loaded curllib.lib(http_ntlm.obj)
> Found _curlx_tvdiff
> Referenced in curllib.lib(url.obj)
> Referenced in curllib.lib(transfer.obj)
> Referenced in curllib.lib(ssluse.obj)
> Loaded curllib.lib(timeval.obj)
> Found _Curl_pgrsTime
> Referenced in curllib.lib(url.obj)
> Referenced in curllib.lib(transfer.obj)
> Referenced in curllib.lib(multi.obj)
> Loaded curllib.lib(progress.obj)
> Found _Curl_parsenetrc
> Referenced in curllib.lib(url.obj)
> Loaded curllib.lib(netrc.obj)
> Found _Curl_tftp_done
> Referenced in curllib.lib(url.obj)
> Loaded curllib.lib(tftp.obj)
> Found _Curl_file_connect
> Referenced in curllib.lib(url.obj)
> Loaded curllib.lib(file.obj)
> Found _Curl_ldap
> Referenced in curllib.lib(url.obj)
> Loaded curllib.lib(ldap.obj)
> Found _Curl_dict
> Referenced in curllib.lib(url.obj)
> Loaded curllib.lib(dict.obj)
> Found _Curl_telnet_done
> Referenced in curllib.lib(url.obj)
> Loaded curllib.lib(telnet.obj)
> Found _Curl_ftp_disconnect
> Referenced in curllib.lib(url.obj)
> Loaded curllib.lib(ftp.obj)
>
=== message truncated ===
___________________________________________________________
24 FIFA World Cup tickets to be won with Yahoo! Mail http://uk.mail.yahoo.com
Received on 2006-04-18