From 6688b56e49ef30fd77d77d9e60e0bc339b1256df Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Tue, 12 Jun 2018 17:49:14 +0200 Subject: [PATCH] Fixed "SimConnect.lib(commClient.obj) : error LNK2019: unresolved external symbol __imp_CoTaskMemFree" on Win64 systems * discussed here: https://swift-project.slack.com/archives/G7GD2UP9C/p1528793410000485 * This problem was obviously related to commit Ref T270, Ref T275 FSX/P3D moved the common parts of the .pro files into .pri files and included those --- src/plugins/simulator/fsxp3d_include.pri | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/simulator/fsxp3d_include.pri b/src/plugins/simulator/fsxp3d_include.pri index 1b611d229..2362b7789 100644 --- a/src/plugins/simulator/fsxp3d_include.pri +++ b/src/plugins/simulator/fsxp3d_include.pri @@ -2,6 +2,9 @@ equals(WORD_SIZE,64) { INCLUDEPATH *= $$EXTERNALSROOT/common/include/simconnect/P3D-v4.1 LIBS *= -L$$EXTERNALS_LIB_DIR/P3D-v4.1 LIBS *= -lAdvapi32 + LIBS += -ldxguid -lole32 + # ole32 only needed for P3D on WIN64 systems, LNK2019: unresolved external symbol __imp_CoTaskMemFree referenced in function + # ldxguid are DirectX guid numbers CONFIG(debug, debug|release): LIBS *= -lSimConnectDebug else: LIBS *= -lSimConnect }