Including
#include <LyShine/Bus/UiTextBus.h>
Generates the following linker errors
error LNK2019: unresolved external symbol “void __cdecl CryAssertTrace(char const *,…)” (?CryAssertTrace@@YAXPEBDZZ) referenced in function “public: __cdecl Vec3_tpl::Vec3_tpl(float,float,float)” (??0?$Vec3_tpl@M@@QEAA@MMM@Z)
error LNK2019: unresolved external symbol “bool __cdecl CryAssert(char const *,char const *,unsigned int,bool *)” (?CryAssert@@YA_NPEBD0IPEA_N@Z) referenced in function “public: __cdecl Vec3_tpl::Vec3_tpl(float,float,float)” (??0?$Vec3_tpl@M@@QEAA@MMM@Z)
error LNK2019: unresolved external symbol “void __cdecl CryDebugBreak(void)” (?CryDebugBreak@@YAXXZ) referenced in function “public: __cdecl Vec3_tpl::Vec3_tpl(float,float,float)” (??0?$Vec3_tpl@M@@QEAA@MMM@Z)
This is reproducible with a new game project, and add the include to one of the .cpp files. This is with VS 15.9.13
The problem appears to occur with most or all of the headers included from the LyShineExamplesCppExample.cpp
#include <LyShine/ISprite.h>
also causes compiler errors.
I have tried pulling in all the include from the example waf file
includes = [bld.Path(‘Code/CryEngine/CryAction’), ‘.’],
But this does not resolve the issue.