Build dynamic library failed on Windows #34
Comments
Hi, Sorry for the late reply. The output looks similar to the one reported on cpp_redis#46. At the time, the error was due to the fact the author was not linking with Ws2_32.lib. Best |
add this code in you project: |
interested, I didn't know about that #pragma comment feature, will add |
Add linkage of ws2_32.lib does not work, I get linking error still. |
what your compiler? |
I'm using vs2015 with win server 2008 |
@Cylix
your try to add sorry for my english. |
@yuangu @Cylix What's more, this project lacks the exporting set for making a DLL on windows. We need to change the declaration like this: - void set_nb_workers(std::size_t nb_threads);
+ __declspec(dllexport) void set_nb_workers(std::size_t nb_threads); If you agree with me, I will submit a patch latter. |
Hi, Sorry I missed the updates on this issue. I'm closing this issue as the original problem seems resolved. Best |
Hi, I'am trying to build a dll library on Windows, but got linking error:
How to reproduce:
The text was updated successfully, but these errors were encountered: