cURL / Mailing Lists / curl-library / Single Mail


Question about using libcurl in Visual Studio 2003

From: Arthur Hung <>
Date: Tue, 9 May 2006 14:32:02 +0800

  I follow the manual "Using libcurl in Visual Studio version
1.0"( 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
My error messages are as follows:

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
MyProject - 2 error(s)

May I miss something wrong??
Thanks a lot..

Received on 2006-05-09