Build Error - SimConnect.lib(client.obj)

Discuss on the SimConnect SDK can be used by programmers to write add-on components for Prepar3D
Post Reply
EllipticCurve
Posts: 151
Joined: Mon Jun 12, 2017 6:14 pm

Build Error - SimConnect.lib(client.obj)

Post by EllipticCurve »

Hi,

I'm trying to build against the P3D v5 SDK, but I'm encountering this error.

As far as I can see, everything is set up as per v4.5 SDK but just replaced with the v5 libraries and headers.

The full error is:

Code: Select all

Severity	Code	Description	Project	File	Line	Suppression State
Error	LNK2001	unresolved external symbol __CxxFrameHandler4	P3DProj	C:\Users\Admin\Documents\Visual Studio 2013\Projects\P3DProj\Gauges\SimConnect.lib(commClient.obj)	1	
Thanks!
All comments and opinions are my own.
shouvik1984
Posts: 17
Joined: Mon Apr 20, 2020 8:46 am

Re: Build Error - SimConnect.lib(client.obj)

Post by shouvik1984 »

I am also facing this issue. Any solutions Please let me know
My project settings still use VS2017 v141 toolset

I am also upgrading from v4.5 to v5.3 SDK and encountered this error.
Best Regards
Shouvik Das

P3Dv5.3 Windows 10 x64 i7-10850H Quadro RTX3000 32GB DDR 2933MHz
User avatar
Rob McCarthy
Lockheed Martin
Posts: 3703
Joined: Wed Aug 24, 2011 1:37 pm

Re: Build Error - SimConnect.lib(client.obj)

Post by Rob McCarthy »

Hello,

To compile against the SDK you will need to use the same toolset that the SDK is built with.

Regards,
Rob McCarthy
Rob McCarthy
Prepar3D® Core Lead
shouvik1984
Posts: 17
Joined: Mon Apr 20, 2020 8:46 am

Re: Build Error - SimConnect.lib(client.obj)

Post by shouvik1984 »

Does it mean I may not be able to use VS2017 to build for Prepar3D v5 SDK 5.3.15.28131?
What is the minimum version required?
Best Regards
Shouvik Das

P3Dv5.3 Windows 10 x64 i7-10850H Quadro RTX3000 32GB DDR 2933MHz
fformulaa
Posts: 10
Joined: Fri Dec 04, 2015 8:02 pm

Re: Build Error - SimConnect.lib(client.obj)

Post by fformulaa »

P3D SDK v5 doesn't support vs2017/v141 toolset because its toolset is v142, which you can't install in vs 2017. They updated the core and SDK to vs 2019/v142 toolset for v5.

They do compile in vs2019 community edition.
Post Reply