-
Notifications
You must be signed in to change notification settings - Fork 284
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
LNK2019 unresolved external symbol "__declspec(dllimport) public: virtual __thiscall GRT::VectorFloat::~VectorFloat(void)" (__imp_??1VectorFloat@GRT@@UAE@XZ) referenced in function "public: __thiscall GRT::GaussNeuron::~GaussNeuron(void)" (??1GaussNeuron@GRT@@QAE@XZ) #133
Comments
The code above looks like an old version, it's using several old APIs, hence the deprecated warnings, however these older APIs should still be supported, so I'm not sure why you are getting the vector float error. You can find an updated version of this example here: https://github.com/nickgillian/grt#getting-started-example Can you point me to where you found this older example so I can update it. Thanks! |
Hey @nickgillian the example you link to above contains an error, But in any case, I can also reproduce the unresolved external symbol issue. Steps to reproduce:
The following errors are generated:
|
This issue only applies to static linkage. Linking dynamically to grt seems to work fine. |
OK, I think I've figured out what's going on here. For building a static lib, or directly including the GRT sources in a project
The above problem occurs when The solution is to make sure |
@jamiebullock Can you elaborate on what you did to get the static build working? I'm trying to do the same but can't figure out exactly where in the out-of-the-box build process to make changes. |
@morphogencc Sorry for the disturbance, but were you able to get the build working? I am facing the same problem. |
Unfortunately I haven't gotten it working, though I haven't tried since last year... |
@MPillai1 what platform(s) are you on? |
I am using Visual Studio 2019 on Windows 10. |
After I received lots of deprecated method errors for save and load which I followed the error suggestions and they got resolved as well as one for
I get this new error. Am I using it wrong? Or what's wrong in general? I did a
git clone
of the repoand then am pointing to GRT folder in my ml101.cpp file as in below.
I found this code sample online. Please point out what's the fix.
The text was updated successfully, but these errors were encountered: