User Tools

Site Tools


Sidebar

Dan's Wiki

DokuWiki Instructions (local) DokuWiki Manual
Site Checker (Orphans Wanted)

Edit Sidebar

pc:software:xplane11:garming5:troubleshooting

This is an old revision of the document!


Troubleshooting Notes, C++ for Garmin G5 Emulator

ProblemWhile building the DLL version, got this error: warning C4273: 'XPluginStart': inconsistent dll linkage
SolutionUnder Property Pages → Configuration Properties → C/C++ → Preprocessor Definitions, added “XPLANEGARMING5_EXPORTS to the list of Preprocessor Definitions. This causes the right MACRO to be called, in the main XplaneGarminG5.h file.

On the .h file, we need the dllexport to be defined.

#ifdef XPLANEGARMING5_EXPORTS
#define GARMIN5DLL_API __declspec(dllexport)
#else
#define GARMIN5DLL_API __declspec(dllimport)
#endif
pc/software/xplane11/garming5/troubleshooting.1551898142.txt.gz · Last modified: 2019/03/06 18:49 by dwheele