Hey guys, I would appreciate some help.
I'm getting a bunch of these errors when I try to build my C++ app.
I know it means there are functions being called without them being defined, buy why?
I'm including SimConnect.h and in the linker settings I added the path to a folder which contains SimConnect.lib. IDE is VS2019, what I am missing?
Unresolved external symbol
Re: Unresolved external symbol
Code: Select all
1>main.obj : error LNK2019: unresolved external symbol SimConnect_CallDispatch referenced in function "void __cdecl testClientEvents(void)" (?testClientEvents@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol SimConnect_Open referenced in function "void __cdecl testClientEvents(void)" (?testClientEvents@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol SimConnect_Close referenced in function "void __cdecl testClientEvents(void)" (?testClientEvents@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol SimConnect_MapClientEventToSimEvent referenced in function "void __cdecl testClientEvents(void)" (?testClientEvents@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol SimConnect_AddClientEventToNotificationGroup referenced in function "void __cdecl testClientEvents(void)" (?testClientEvents@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol SimConnect_SetNotificationGroupPriority referenced in function "void __cdecl testClientEvents(void)" (?testClientEvents@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol SimConnect_MapInputEventToClientEvent referenced in function "void __cdecl testClientEvents(void)" (?testClientEvents@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol SimConnect_SetInputGroupState referenced in function "void __cdecl testClientEvents(void)" (?testClientEvents@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol SimConnect_SubscribeToSystemEvent referenced in function "void __cdecl testClientEvents(void)" (?testClientEvents@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol SimConnect_RequestSystemState referenced in function "void __cdecl MyDispatchProc(struct SIMCONNECT_RECV *,unsigned long,void *)" (?MyDispatchProc@@YAXPEAUSIMCONNECT_RECV@@KPEAX@Z)
1>main.obj : error LNK2019: unresolved external symbol SimConnect_MapClientDataNameToID referenced in function "void __cdecl testClientEvents(void)" (?testClientEvents@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol SimConnect_AddToClientDataDefinition referenced in function "void __cdecl testClientEvents(void)" (?testClientEvents@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol SimConnect_RequestClientData referenced in function "void __cdecl testClientEvents(void)" (?testClientEvents@@YAXXZ)
Re: Unresolved external symbol
Needed to add Simconnect.lib at Linker command line options
/fixed
/fixed