Unresolved external symbol while compiling JSBSimForUnreal #1109
Replies: 4 comments 2 replies
-
Those are references to some new classes that were added to JSBSim with this commit - e33e184 recently. So it looks like you're compiling some portion of your Unreal application with the new header files but still linking to an old build of the JSBSim library. So you need to re-build the JSBSim library. |
Beta Was this translation helpful? Give feedback.
-
Ah, I think I see the issue. The new classes aren't decorated with class JSBSIM_API FGFDMExec : public FGJSBBase Where #if defined(_WIN32) && !defined(JSBSIM_STATIC_LINK)
#ifdef JSBSIM_EXPORT
#define JSBSIM_API __declspec(dllexport)
#else
#define JSBSIM_API __declspec(dllimport)
#endif
#else
#define JSBSIM_API
#endif |
Beta Was this translation helpful? Give feedback.
-
I've just submitted a pull request - #1111. You can either wait for it to be merged in or if you're in a rush just apply the handful of changes in the commit to your local source. @bcoconni I guess we should add another build task to the JSBSim workflow. At a minimum to build the JSBSim library as a DLL and then build against it with some minimal host wrapper, or go all the way and build the Unreal project. |
Beta Was this translation helpful? Give feedback.
-
In terms of the size of the Unreal SDK etc. that's partly why I haven't got it installed locally to test etc. So when this report came in I was sort of guessing what the problem was without being able to test my guess. I originally thought that the issue was that the new logging classes weren't being exported from the DLL version of JSBSim and that the Unreal project was trying to call them and so it failed during linking. What I didn't realise at the time was that there is a separate Unreal specific project file So the issue wasn't the fact that the new logging classes weren't exported, the issue was that compiling JSBSim itself via |
Beta Was this translation helpful? Give feedback.
-
Hi there,
When I try to compile JSBSimForUnreal I have these errors (sorry for Polish language, "nierozpoznany symbol zewnętrzny means "unresolved external symbol")
I use visual studio 2022, but with Windows 10 SDK (10.0.18362.0) and MSVC v142 tools
Beta Was this translation helpful? Give feedback.
All reactions