curl-library
Re: Compiling libcurl 7.16.2 with VC8 (was Re: [curlib.lib] unresolved externals Problems!!)
Date: Thu, 19 Apr 2007 18:39:46 +0200
Hi Jeff,
2007/4/19, Jeff McKenzie wrote:
> Hi Yang,
>
> I swear I followed your grandma's steps, and I received the following error:
>
> Error 1 fatal error C1083: Cannot open include file: 'curl.h':
> No such file or directory c:\temp\curl-7.16.2\myapp\myapp.cpp 6
>
> This is a copy of my MyApp.cpp file:
>
> #include "stdafx.h"
>
> #include <curl.h>
>
> int _tmain(int argc, _TCHAR* argv[])
> {
> CURL *curl;
> curl_global_init(CURL_GLOBAL_ALL);
> curl = curl_easy_init();
> curl_easy_setopt(curl, CURLOPT_URL,"www.example.com");
> curl_easy_setopt(curl, CURLOPT_HEADER, TRUE);
> curl_easy_cleanup(curl);
> curl_global_cleanup();
> return 0;
> }
>
>
> Did I miss something glaringly easy? J
My grandma swears you skipped step number 14 ;-)
14) From within VC8 Solution Explorer -> Right click on "MyApp" -> Properties
Automagically MyApp Properties Pages window opens
Select: Configuration "All Configurations"
Select: Configuration Properties -> C/C++ -> General -> Additional
Include Directories
and specify: C:\MyFirstAttempt\curl-7.16.2\include\curl
Press Button "Apply"
Press Button "Accept"
In your case directory name would be "c:\temp\curl-7.16.2\include\curl"
Cheers,
-- -=[Yang]=-Received on 2007-04-19