Notifications
Clear all

[Closed] MaxSDK GUP plugin linker errors

actually now the build fails for unit tests:

2>linker_includes.obj : error LNK2019: unresolved external symbol __imp__invalid_parameter referenced in function "void * __cdecl std::_Allocate_manually_vector_aligned<struct std::_Default_allocate_traits>(unsigned __int64)" (??$_Allocate_manually_vector_aligned@U_Default_allocate_traits@std@@@std@@YAPEAX_K@Z)
2>SDPluginTest.obj : error LNK2001: unresolved external symbol __imp__invalid_parameter
2>linker_includes.obj : error LNK2019: unresolved external symbol __imp__CrtDbgReport referenced in function "void * __cdecl std::_Allocate_manually_vector_aligned<struct std::_Default_allocate_traits>(unsigned __int64)" (??$_Allocate_manually_vector_aligned@U_Default_allocate_traits@std@@@std@@YAPEAX_K@Z)
2>SDPluginTest.obj : error LNK2001: unresolved external symbol __imp__CrtDbgReport
2>C:\MagosIT\Autodesk\SpaceDesigner\impex\SDPlugin\x64\Debug\SDPluginTest.exe : fatal error LNK1120: 2 unresolved externals

As a workaround I just removed the “MultiThreadedDLL” settings for the unit tests, because maxsdk is not included in the tests anyways (just mocking parts of maxsdk by my own code for sensing operations anyways).

Have no idea why this is however. Only changed that single line. Maybe the multithreaded libs have different linkage needs here and there which is a bit weird but fine… would be good to know in case someone will set the multi-threaded to be on to the unit test project and maybe include maxsdk code in it but I see no reason why that should be hybrid build so I keep only the main project to build as hybrid.

Page 2 / 2