cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Help required...

From: Linus Nielsen Feltzing <linus_at_haxx.se>
Date: Mon, 2 Jul 2001 22:02:04 +0200

> Thanks a million for yr help....

You're welcome.

> I think I have got libcurl.lib built successfully
> through vc6.

Great!

> This is what I did...
>
> compiled /lib/makefile.vc6 after running vcvars32.bat
> It generated libcurl.lib but with a lot of warnings?
>
> Qs is "Does that matter"? If yes, then let me know so
> that I can try it once again, if no, then go on....

Don't worry about the warnings.

> Then I went to /src and got command line curl
> compiled,
> this also generated a lot of warnings, but it works :)

Then you're set!

> By this I understand that libcurl.lib was generated
> successfully..
>
> Now, you have mailed me makefile.vc6 and ftpget.c
> (windows version) I tried to generate ftpget.exe thru
> makefile.vc6 from nmake, it gives me the error as
> below
>
> ------------------------------------------------
>
> MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
> cl.exe /MD /O2 /D "NDEBUG" /I "../include" /nologo
> /W3 /GX /D "WIN32" /D "VC6" /D "_MBCS" /D "_LIB" /YX
> /FD /c /D "MSDOS" ftpget.c
> ftpget.c
> ftpget.c(14) : fatal error C1083: Cannot open include
> file: 'curl/curl.h': No such file or directory
>
> ** error 2 ** deleting ftpgetr.obj
>
> ------------------------------------------------
>
> I presume this is include path problem. Can you please
> throw light on this. Is there any extra include path?
> ../include or ../../include as above does not work.
>
> I noticed that makefile.vc6 to generate ftpget.exe and
> libcurl.lib are more or less the same except for the
> include path and the -lib option?

Yep. The /I "../include" is supposed to point out the
include directory in the curl distribution (curl-7.8/include).
You can just as well set it to the absolute path, like:

/D "C:/curl-7.8/include"

or whatever.

This makefile assumes that the ftpget.c file is located
in the curl-7.8/docs/examples directory. If you moved it
you must change the include path as well.

> One more thing....
> I tried creating a New Project Workspace thru
> vc6(Win32 Console Application) and adding ftpget.c to
> the source files and tried to compile, it gave me the
> same problem inspite of libcurl.lib and wsock32.lib
> being in the same directory.

It does not have anything to do with the .lib-files, it
is the .h-files. Just change the include path and it will
work.

Good luck!

/Linus
Received on 2001-07-02