开发者

DLL dependant on curllib.dll - How can I fix this?

I'm new to developing in C++. I've developed a dll where I'm using curllib to make HTTP requests.

When running the dll via depend.exe it notifies me that my dll now depends on the curllib.dll. This simply doesn't work for me. My dll is set as a static library not shared and will be distributed on its own. I cannot rely on a user having libcurl.dll installed.

I thought by including libcurl in开发者_如何学Cto my project this is all that would be needed and my dll could be independent.

If this is impossible to resolve is there an alternative method I can use to create HTTP requests? Obviously I would prefer to use libcurl.

Thanks in advance.


You can compile curl as a lib instead of a dll by opening the solution file in visual studio and changing the build project to "lib release". Thus you wont need the dll at all and you can just include the lib in the linker.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜