Unresolved external symbol

SDK supports Prepar3D’s philosophy of an open development architecture and encourages third parties to bring new innovations with improved add-ons and training content.
Post Reply
KLM613
Posts: 4
Joined: Sun Apr 26, 2020 5:45 pm

Unresolved external symbol

Post by KLM613 »

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?
KLM613
Posts: 4
Joined: Sun Apr 26, 2020 5:45 pm

Re: Unresolved external symbol

Post by KLM613 »

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)

KLM613
Posts: 4
Joined: Sun Apr 26, 2020 5:45 pm

Re: Unresolved external symbol

Post by KLM613 »

Needed to add Simconnect.lib at Linker command line options


/fixed
Post Reply