Hi folks, pretty new recruit to FEBio here.
I'm working on implementing a couple plugins for custom material models in Visual Studio 2019. I've been following along with the dev manual and the suggestions here in the forum but I'm still having trouble getting my plugins to run. Most of what I am doing is heavily dependent on pre-existing code from the NeoHookean plugin and the core code on Github. So far I have:
- Made sure that the libraries and include folders from the SDK are included in the solution properties for both Debug and Release;
- Included the WIN32 macro in the preprocessor (just typed it in to the field, which I think does the trick); and
- Included the FECore and FEBioMech libraries in the Linker input.
When I try to build my solution, I get the LNK2019 and LNK2001 "unresolved external symbol" errors for some of the pre-existing classes and parameters from the FEBio SDK. I'm at a total loss. Can anyone suggest what I might be missing? I have 30 errors in total, some examples being:
1>AdaptedVW.obj : error LNK2019: unresolved external symbol "public: void __thiscall FEParamContainer::AddParameter(double &,char const *)" (?AddParameter@FEParamContainer@@QAEXAANPBD@Z) referenced in function "protected: virtual void __thiscall FEAdaptedVW::BuildParamList(void)" (?BuildParamList@FEAdaptedVW@@MAEXXZ)
or
1>dllmain.obj : error LNK2001: unresolved external symbol "public: virtual class FEParam * __thiscall FEParamContainer::GetParameter(char const *)" (?GetParameter@FEParamContainer@@UAEPAVFEParam@@PB D@Z)
Thanks!
I'm working on implementing a couple plugins for custom material models in Visual Studio 2019. I've been following along with the dev manual and the suggestions here in the forum but I'm still having trouble getting my plugins to run. Most of what I am doing is heavily dependent on pre-existing code from the NeoHookean plugin and the core code on Github. So far I have:
- Made sure that the libraries and include folders from the SDK are included in the solution properties for both Debug and Release;
- Included the WIN32 macro in the preprocessor (just typed it in to the field, which I think does the trick); and
- Included the FECore and FEBioMech libraries in the Linker input.
When I try to build my solution, I get the LNK2019 and LNK2001 "unresolved external symbol" errors for some of the pre-existing classes and parameters from the FEBio SDK. I'm at a total loss. Can anyone suggest what I might be missing? I have 30 errors in total, some examples being:
1>AdaptedVW.obj : error LNK2019: unresolved external symbol "public: void __thiscall FEParamContainer::AddParameter(double &,char const *)" (?AddParameter@FEParamContainer@@QAEXAANPBD@Z) referenced in function "protected: virtual void __thiscall FEAdaptedVW::BuildParamList(void)" (?BuildParamList@FEAdaptedVW@@MAEXXZ)
or
1>dllmain.obj : error LNK2001: unresolved external symbol "public: virtual class FEParam * __thiscall FEParamContainer::GetParameter(char const *)" (?GetParameter@FEParamContainer@@UAEPAVFEParam@@PB D@Z)
Thanks!
Comment