Unresolved external symbol

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

Unresolved external symbol

Postby KLM613 » Sun Apr 26, 2020 5:55 pm

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

Postby KLM613 » Sun Apr 26, 2020 6:40 pm

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

Postby KLM613 » Sun Apr 26, 2020 6:49 pm

Needed to add Simconnect.lib at Linker command line options


/fixed


Return to “Software Development Kit (SDK) Questions”

Who is online

Users browsing this forum: No registered users and 23 guests