Yang
Yang

Reputation: 9972

linking libcurl in Visual Studio 8

I have a C project needed to be compiled into a DLL.

This C project includes . I had compiled a libcurl.dll from source with VS2008.

I put the libcurl.dll in C:\Windows\System32 (I suppose this serves as installing the DLL)

Now, when I compile my own C project, it says 'cannot open include file curl/curl.h'.

Did I miss any steps? Sorry I'm really new to Windows system.

Thanks in advance!

Upvotes: 0

Views: 232

Answers (1)

Erik
Erik

Reputation: 1694

You need to add the path to curl/curl.h as an additional include directory in your project settings. Right click on the project, go to properties, and it's under the compiler section.

You'll also need to add curl.lib as a input library under your linker settings.

Upvotes: 2

Related Questions