Re: Compiling libcurl 7.16.2 with VC8 (was Re: [curlib.lib] unresolved externals Problems!!)
Date: Thu, 19 Apr 2007 18:39:46 +0200
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 = curl_easy_init();
> curl_easy_setopt(curl, CURLOPT_URL,"www.example.com");
> curl_easy_setopt(curl, CURLOPT_HEADER, TRUE);
> 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
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"
-- -=[Yang]=-Received on 2007-04-19