String literal issue when compiling latest develop?
-
There seems to be a string literal length issue with the latest develop branch, on Windows. It compiled fine on MacOS.
The commit sha: 65e2477aca6ee72065ca93b63e7c2fcbe2a3175fSeverity Code Description Project File Line Suppression State Details Warning C4101 'unused': unreferenced local variable HISE Standalone_App H:\development\HISE\HISE\hi_scripting\scripting\engine\JavascriptApiClass.h 754 **Error C2026 string too big, trailing characters truncated HISE Standalone_App H:\development\HISE\HISE\hi_backend\backend\StandaloneProjectTemplate.cpp 279** Warning C4099 'hise::InteractionTestWindow': type name first seen using 'class' now seen using 'struct' HISE Standalone_App H:\development\HISE\HISE\hi_backend\backend\ai_tools\InteractionTester.h 31 Warning C4189 'p': local variable is initialized but not referenced HISE Standalone_App H:\development\HISE\HISE\hi_backend\backend\ai_tools\RestHelpers.cpp 3316 Warning C4063 case '65536' is not a valid value for switch of enum 'hise::RestServer::Method' HISE Standalone_App H:\development\HISE\HISE\hi_backend\backend\ai_tools\RestServer.cpp 409 Warning C4063 case '65536' is not a valid value for switch of enum 'hise::RestServer::Method' HISE Standalone_App H:\development\HISE\HISE\hi_backend\backend\ai_tools\RestServer.cpp 487 Warning C4189 'content': local variable is initialized but not referenced HISE Standalone_App H:\development\HISE\HISE\hi_backend\backend\ai_tools\RestServerUndoManager.cpp 270 Warning C4189 'mc': local variable is initialized but not referenced HISE Standalone_App H:\development\HISE\HISE\hi_backend\backend\ai_tools\RestServerUndoManagerActions.cpp 382 Warning C4101 'r': unreferenced local variable HISE Standalone_App H:\development\HISE\HISE\hi_backend\backend\BackendProcessor.cpp 473 Warning C4267 'return': conversion from 'size_t' to 'int', possible loss of data HISE Standalone_App H:\development\HISE\HISE\hi_core\hi_dsp\ProcessorMetadataRegistry.cpp 77 Warning C4101 'mv': unreferenced local variable HISE Standalone_App H:\development\HISE\HISE\hi_scripting\scripting\api\ScriptingApiContent.cpp 2364 Warning C4101 'unused': unreferenced local variable HISE Standalone_App H:\development\HISE\HISE\hi_scripting\scripting\engine\JavascriptApiClass.h 754 Warning C4101 'unused': unreferenced local variable HISE Standalone_App H:\development\HISE\HISE\hi_scripting\scripting\engine\JavascriptApiClass.h 754 Warning C4101 'unused': unreferenced local variable HISE Standalone_App H:\development\HISE\HISE\hi_scripting\scripting\engine\JavascriptApiClass.h 754 Warning C4101 'unused': unreferenced local variable HISE Standalone_App H:\development\HISE\HISE\hi_scripting\scripting\engine\JavascriptApiClass.h 754 Warning C4101 'e': unreferenced local variable HISE Standalone_App H:\development\HISE\HISE\hi_scripting\scripting\scriptnode\api\ModulationSourceNode.cpp 97The issue seems to be with:
HISE\hi_backend\backend\StandaloneProjectTemplate.cppThis:
</XCODE_MAC>Should be this:
</XCODE_MAC>)" R"( -
@Orvillain yup should be fixed now - the latest addition of the macOS makefile exporter exceed the length for string literals on Windows C++.
-
Hey @Christoph-Hart
Heads up, you might still have an issue:
> Compiling dll plugin Failed to load the project file: <project>\DspNetworks\Binaries\AutogeneratedProject.jucer Compiling 64bit <project> ... MSBuild version 18.4.0+6e61e96ac for .NET Framework include_hi_dsp_library_01.cpp include_hi_tools_03.cpp Main.cpp RNBO.cpp !<HISE>\hi_dsp_library\node_api\helpers\node_ids.h(842,5): error C2653: 'zstd': is not a class or namespace name !<HISE>\hi_dsp_library\node_api\helpers\node_ids.h(842,11): error C2065: 'ZDefaultCompressor': undeclared identifier !<HISE>\hi_dsp_library\node_api\helpers\node_ids.h(842,30): error C2146: syntax error: missing ';' before identifier 'comp' !<HISE>\hi_dsp_library\node_api\helpers\node_ids.h(842,30): error C2065: 'comp': undeclared identifier !<HISE>\hi_dsp_library\node_api\helpers\node_ids.h(843,5): error C2065: 'comp': undeclared identifier !<HISE>\hi_dsp_library\node_api\helpers\node_ids.h(937,4): error C2653: 'zstd': is not a class or namespace name !<HISE>\hi_dsp_library\node_api\helpers\node_ids.h(937,10): error C2065: 'ZDefaultCompressor': undeclared identifier !<HISE>\hi_dsp_library\node_api\helpers\node_ids.h(937,29): error C2146: syntax error: missing ';' before identifier 'comp' !<HISE>\hi_dsp_library\node_api\helpers\node_ids.h(937,29): error C2065: 'comp': undeclared identifier !<HISE>\hi_dsp_library\node_api\helpers\node_ids.h(939,4): error C2065: 'comp': undeclared identifier !<HISE>\hi_dsp_library\node_api\helpers\node_ids.h(958,4): error C2653: 'zstd': is not a class or namespace name !<HISE>\hi_dsp_library\node_api\helpers\node_ids.h(958,10): error C2065: 'ZDefaultCompressor': undeclared identifier !<HISE>\hi_dsp_library\node_api\helpers\node_ids.h(958,29): error C2146: syntax error: missing ';' before identifier 'comp' !<HISE>\hi_dsp_library\node_api\helpers\node_ids.h(958,29): error C2065: 'comp': undeclared identifier !<HISE>\hi_dsp_library\node_api\helpers\node_ids.h(959,4): error C2065: 'comp': undeclared identifierSanitised log. But seems to be to do with zstd::ZDefaultCompressor ????