开发者

Possible to link .dll with .lib?

开发者 https://www.devze.com 2023-04-09 03:46 出处:网络
Here\'s my dilemma: I\'m attempting to create a .dll version of my project. This project uses the V8 and CURL libraries which are currently built as debug .libs. I\'d like to package all of them u开发

Here's my dilemma: I'm attempting to create a .dll version of my project. This project uses the V8 and CURL libraries which are currently built as debug .libs. I'd like to package all of them u开发者_如何学编程p in a single DLL that can be shared (I understand I need to alter my code with __declspec(dllexport) but that's a separate issue) to others.

Do I need to compile the V8 and CURL libraries as DLLs then somehow wrap them up in my own DLL?


If you have a .lib with no .dll for the CURL libraries, then they are most certainly static libraries. When you link them to your DLL, the code from these libraries is linked into your DLL.


I've generally had to include the source for the dependencies (in your case both V8 and CURL) in my project and build that way to get them completely incorporated without extra headaches.

If you have libs and you link to those you SHOULD get them merged though.

0

精彩评论

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

关注公众号