XPMP2
X-Plane multiplayer library 2 - using instancing
XPMPExport.h File Reference

Macro definitions to support building/using a Windows DLL. More...

Go to the source code of this file.

Macros

#define XPMP2_EXPORT
 

Detailed Description

Macro definitions to support building/using a Windows DLL.

When building a Windows DLL version of XPMP2, This file switches between dllexport and dllimport declarations.

The default remains to be building a static library, for which you as a plugin author don't need to set anything special.

Before considering to use a DLL version refer to the XPMP2 Build documentation.

The XPMP2 build process defines XPMP2_DLLEXPORT when -D"XPMP2_BUILD_SHARED_LIBS:boolean=TRUE" is passed to the cmake call, to build the DLL.

If you want to use the XPMP2.dll from your plugin you need to

  1. define XPMP2_DLLIMPORT before including any XPMP2 header,
  2. link to the XPMP2.lib DLL import library, one of the outputs of the DLL build process, and
  3. ship the XPMP2.dll with your plugin.
Author
Birger Hoppe
Jean Philippe Lebel

Macro Definition Documentation

◆ XPMP2_EXPORT

#define XPMP2_EXPORT