-
Notifications
You must be signed in to change notification settings - Fork 383
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
'unresolved external symbol' in Visual Studio 2022 #514
Comments
@etkaar Hi, do you solve it? I encounter problem very like this, but the unresolved symbol is |
No, unfortunately not. I had to use Visual Studio 2015 instead: You will later then be able to still use Visual Studio 2022 by changing the Platform Toolset: |
It's more likely a different problem, because I have solved mine. I share my solution here, in case it helps some one. I build my program with cmake and compile with Visual Studio 2019. It's important to add -DCMAKE_WINDOWS_EXPORT_ALL_SYSBOLS=true to cmake parameters when building, which means all symbols of libtins will be exported to |
I ran across this issue only with compiling using MVSC. Was able to resolve it by adding virtual deconstructors to derived classes that do no have one but the parent class does. In my example it was for Sniffer and FileSniffer. In the header I added Looks like this might also aid in #291 |
The example code unfortunately can't be compiled with Visual Studio 2022:
Errors
The text was updated successfully, but these errors were encountered: