How to know the build options of every file?
I simply created 1 simple component in SamplesProject. Modifying msvs_helper.py to log the commands the PCH build options are the following:
The build options for my component are the following:
The build options for SamplesProject are the following:
However, when I try to replicate executing those commands from the console I get the following warnings and errors:
LINK : warning LNK4098: defaultlib ‘LIBCMT’ conflicts with use of other libs; use /NODEFAULTLIB:library
StdAfx.2581533.obj : error LNK2001: unresolved external symbol “void __cdecl CryAssertTrace(char const *,…)” (?CryAssertTrace@@YAXPEBDZZ)
StdAfx.2581533.obj : error LNK2001: unresolved external symbol “bool __cdecl CryAssert(char const *,char const *,unsigned int,bool *)” (?CryAssert@@YA_NPEBD0IPEA_N@Z)
StdAfx.2581533.obj : error LNK2001: unresolved external symbol “void __cdecl CryDebugBreak(void)” (?CryDebugBreak@@YAXXZ)
So StdAfx.obj has not the symbols of CryCommon, CryAssert, etc.
If I add ALL the others .obj files of the project, eventually the symbols appear
I might be using incorrect options? Is there something I’m not taking into consideration?
Thanks so much in advance!