TwinFan / LiveTraffic

LiveTraffic is an X-Plane multiplayer plugin, which fills your sky with live air traffic based on public flight tracking data.
https://twinfan.gitbook.io/livetraffic/
Other
100 stars 25 forks source link

Error building in Visual Studio #234

Closed veetine closed 2 years ago

veetine commented 2 years ago

C1047 The object or library file "Lib\XMMP2\win\ xpmp2. Lib "is created using a different compiler version than other objects such as" build\x64\Release\base64.obj "; Use the same compiler to generate all objects and libraries image Look forward to your reply! Thank you

TwinFan commented 2 years ago

The uploaded version of XPMP2.lib has been built with GitHub actions, ie. using GitHub's software, in this case Visual Studio Enterprise 2022. This way, also LiveTraffic can be built with GitHub actions automatically.

base64.obj has been built by yourself (as all the .obj files) when building the project. If you use an older version of Visual Studio, then it may not be able to process the provided XPMP2.lib.

Solution: You can either use the same version of Visual Studio (though I am not sure if Visual Studio Community 2022 will work but it is worth a try). Or you can also build XPMP2 yourself and replace XPMP2.lib. The latter is what I do when building with VS.

I shall add a note to this fact into LiveTraffic's README.md file.