-
Couldn't load subscription status.
- Fork 135
Description
I've been trying to integrate your code with MS Visual Studio 2019 for quite awhile now and I've come up with many errors. Currently the one I can not figure out is all these unresolved external symbols that I'm getting. I'm new to integrating libraries with Visual Studio, or anything for that matter. I'll walk you through what I've done.
I used CMake to build the binaries for a static library then in the .sln file it produced I built the solution.
After building it I placed the sockpp-static.lib and sockpp-obj.lib in a dependencies folder in the repo of the project I was testing it with. I pointed the linker at both of these files and then added the include and library directories.
It threw some weird runtime errors that I had to fix and some weird iterator debug errors that I fixed and now I'm at this point where it throws all these unresolved external symbol errors based off the sockpp-static.lib file.
It looks like this:
https://i.imgur.com/NImylP6.png
It does this after I use anything to do with sockpp.
For example:
in_port_t port = 5050;
socket_initializer sockInit;
return 0;
will throw a bunch of errors. However if it's only in_port_t port; then it won't throw the errors.
I've tried messing with the runtime library it uses and some preprocessor settings as well. I even tried adding each of the .obj files that are generated by CMake to the Additional Directories but all that does is make it so the file that is causing the issue is no longer "sockpp-static.lib(socket.obj)" but it's "socket.obj" that's causing the problem.
Forgive me, I'm new to this. I have no clue what could be causing all these errors.