JKQTPlotter trunk/v5.0.0
an extensive Qt5+Qt6 Plotter framework (including a feature-richt plotter widget, a speed-optimized, but limited variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies
Loading...
Searching...
No Matches
Collaboration diagram for Library Facilities for JKQTMath:

Macros

#define jkqtmath_LIB_EXPORT   Q_DECL_EXPORT
 
#define jkqtmath_LIB_EXPORT_LIBRARY
 is only defined while compiling JKQTMath into JKQTMathSharedLib_XYZ and ensures thet the symbols are exported. If it is not defined (e.g. while compiling an application), the symbols are imported
 
#define jkqtmath_LIB_IN_DLL
 declares that the application should link against a shared version of JKQTMath, i.e. JKQTMathSharedLib_XYZ . This needs to be defined while compiling the library and while compiling any application linking against JKQTMathSharedLib_XYZ.
 

Detailed Description

Macro Definition Documentation

◆ jkqtmath_LIB_EXPORT

#define jkqtmath_LIB_EXPORT   Q_DECL_EXPORT

This define allows to export functions and classes from the jkqtmath-library when building a dynamic/shared library. Usage is as follows:

#include "jkqtmath_imexport/jkqtmath_imexport.h"
class jkqtmath_LIB_EXPORT exportedClassName {
...
};
jkqtmath_LIB_EXPORT void exportedFunctionName();
#define jkqtmath_LIB_EXPORT
Definition jkqtmath_imexport.h:87

These macros append the appropriate Q_DECL_EXPORT and Q_DECL_IMPORT to the function/class body and thus tell windows compilers to export these sysmbols from the shared library, or import them from a shared library.

Note that these attributes are only necessary on windows systems!

These macros are controlled by two other macros:

  • jkqtmath_LIB_IN_DLL declares that the application should link against a shared version of JKQTMath, i.e. JKQTMathSharedLib_XYZ . This needs to be defined while compiling the library and while compiling any application linking against JKQTMathSharedLib_XYZ.
  • jkqtmath_LIB_EXPORT_LIBRARY is only defined while compiling JKQTMath into JKQTMathSharedLib_XYZ and ensures thet the symbols are exported. If it is not defined (e.g. while compiling an application), the symbols are imported .

◆ jkqtmath_LIB_EXPORT_LIBRARY

#define jkqtmath_LIB_EXPORT_LIBRARY

is only defined while compiling JKQTMath into JKQTMathSharedLib_XYZ and ensures thet the symbols are exported. If it is not defined (e.g. while compiling an application), the symbols are imported

◆ jkqtmath_LIB_IN_DLL

#define jkqtmath_LIB_IN_DLL

declares that the application should link against a shared version of JKQTMath, i.e. JKQTMathSharedLib_XYZ . This needs to be defined while compiling the library and while compiling any application linking against JKQTMathSharedLib_XYZ.