curl-library
Question about using libcurl in Visual Studio 2003
Date: Tue, 9 May 2006 11:24:15 +0800
HI:
I follow the manual "Using libcurl in Visual Studio version
1.0"(http://www.curl.seekmeup.com/libcurl/c/visual_studio.pdf) to add
libcurl to my project. I think I have already completed the manual's
instruction, like include, library. But I still get some error
messages. For debugging, I only add in my required function:CURL
*curl;. Of course, I add #include <curl/curl.h> and #include <stdio.h>
as the sample http://curl.haxx.se/lxr/source/docs/examples/simple.c.
My error messages are as follows:
======================================================================
Compiling...
function1.c
d:\MyProject\_function1\function1.c(1133) : error C2275: 'CURL' :
illegal use of this type as an expression
d:\MyProject\libcurl\include\curl\curl.h(44) : see declaration of 'CURL'
d:\MyProject\_function1\function1.c(1133) : error C2065: 'curl' :
undeclared identifier
Build log was saved at
"file://d:\MyProject\_function1\function1.c\win\Debug_FileSystem\BuildLog.htm"
MyProject - 2 error(s)
======================================================================
May I miss something wrong??
Thanks a lot..
Arthur
Received on 2006-05-09