2 Answers
2

The #include <C:\curl\curl.h> just includes the relevant function prototypes etc. What you also have to do is update your project settings to tell the linker to link to the appropriate curl library.

Since you're using Visual Studio, right-click on your project and select properties. Then go to Configuration Properties/Linker. Then go to to Linker -> Input and enter the name of you lib file (there's probably a curl.lib in C:\curl\) in the Additional Dependencies field.

A minimal VC++ 6.0 reference workspace (vc6curl.dsw) is available with the
source distribution archive to allow proper building of the two included
projects, the libcurl library and the curl tool.

1) Open the vs/vc6/vc6curl.dsw workspace with MSVC6's IDE.

2) Select 'Build' from top menu.

3) Select 'Batch Build' from dropdown menu.

4) Make sure that the eight project configurations are 'checked'.

5) Click on the 'Build' button.

6) Once the eight project configurations are built you are done.

Dynamic and static libcurl libraries are built in debug and release flavours,
and can be located each one in its own subdirectory, dll-debug, dll-release,
lib-debug and lib-release, all of them below the 'vs/vc6/lib' subdirectory.

In the same way four curl executables are created, each using its respective
library. The resulting curl executables are located in its own subdirectory,
dll-debug, dll-release, lib-debug and lib-release, below 'vs/vc6/src' subdir.

These reference VC++ 6.0 configurations are generated using the dynamic CRT.

Intentionally, these reference VC++ 6.0 projects and configurations don't use
third party libraries, such as OpenSSL or Zlib, to allow proper compilation
and configuration for all new users without further requirements.

If you need something more 'involved' you might adjust them for your own use,
or explore the world of makefiles described above 'MSVC from command line'.

Once it's done building, you'll have a .lib file in one of the folders