-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error LNK2019 #70
Comments
Apologies, I don't know Windows very well. It seems like it says that it's linking to the sockpp library, but the errors make it seem like it's not. I just released an update (v0.8.0) with a bunch of changes to the CMake files. I wonder if anything in there helps, or if not just changes the result. Can you give it a try with the latest version? Either way, there's a number of outstanding issues with the Windows build, so I will try to get them fixed shortly. |
I just tried it with the latest release, v0.8.0, and got some unresolved symbols from the linker, but they appeared to be the system calls. I manually had to add the library dependency: Once I did, it built and ran fine. Let me know if that helps. (Perhaps the transitive dependency in CMake doesn't work for static libs in Windows?) Also... if you build the library with CMake on Windows, it creates a |
Also note that the DLL now seems to build properly on Windows with v0.8.0... and the DLL appears to link in the required system libraries. So you can give that a try as well. Build sockpp with |
I hope this is fixed by the updated CMake build in v0.8.1. |
Hi guys,
I created a C++ project with VS 2019 and related head files and a library are added to the project. Unfortunately, it is unable to build successfully. Are there some critical steps I've overlooked?
The text was updated successfully, but these errors were encountered: