Error when compiling Standalone App
Hey, I am running into this error in Windows now. It happens when trying to create the .lib and .exp files. Tested on a empty new project.
Creating library .\..\..\Compiled\App\Test1.lib and object .\..\..\Compiled\App\Test1.exp
include_hi_core.obj : error LNK2001: unresolved external symbol "public: static class juce::String __cdecl hise::Fronte ndHandler::getHiseVersion(void)" (?getHiseVersion@FrontendHandler@hise@@SA?AVString@juce@@XZ) [C:\Users\iso\Documents\G itHub\Test1\Binaries\Builds\VisualStudio2022\Test1_App.vcxproj] .\..\..\Compiled\App\\Test1.exe : fatal error LNK1120: 1 unresolved externals [C:\Users\iso\Documents\GitHub\Test1\Bina ries\Builds\VisualStudio2022\Test1_App.vcxproj]
This seems like a HISE internal error.
Moving forward I have no need for .lib or .exp files is that something we can completly disable?
Error disappeared after recompiling HISE. I feel like sometimes HISE gets stuck in a specific state that produces a error but its not clear what leads to these errors.
Anyways consider this solved.
I feel like sometimes HISE gets stuck in a specific state that produces a error
Cleaning the build folder often helps
In this case it was a mismatch between the source code (that defined the
FrontendHandler::getHiseVersion()function) and your HISE build which didn't create the respective C++ code in the autogenerated plugin files (this was an addition in one of the more recent commits).
So always make sure that you're using the same codebase for compiling HISE and the plugin.
@Christoph-Hart Got it!