Re: Question about using libcurl in Visual Studio 2003
Date: Thu, 11 May 2006 08:59:46 +0800
Sorry, i did not notice that I had a printf before a declaration,
everything is ok with libcurl. Thanks a lot.
On 5/9/06, Arthur Hung <ychung1007_at_gmail.com> wrote:
> Thanks for your reply. My program is a littlte complex. Its work flow is main.c->integration.c->function1.c. In function1.c, there is a function "ImportData" which needs help of libcurl. I add "#include <curl/curl.h>" in function1.c and "CURL *curl;" in function "ImportData". Before I add these two code, my program works fine. I think I have completed the manual's instruction for setting of Visual Studio 2003. Before I add these codes, I ever meet library link error. And I have fixed this problem. So, I am very confused what's wrong. Hope you can help me. Thanks a lot.
> On 5/9/06, Daniel Stenberg <daniel_at_haxx.se> wrote:
> > On Tue, 9 May 2006, Arthur Hung wrote:
> > > 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
> > Can you show us a small but full source code example you try to compile? It
> > sounds like you're just doing a syntax error in your C code.
> > --
> > Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-05-11