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 JKQTMathText:

Macros

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

Detailed Description

Macro Definition Documentation

◆ JKQTMATHTEXT_LIB_EXPORT

#define JKQTMATHTEXT_LIB_EXPORT

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

#include "jkqtmathtext/jkqtmathtext_imexport.h"
class JKQTMATHTEXT_LIB_EXPORT exportedClassName {
...
};
JKQTMATHTEXT_LIB_EXPORT void exportedFunctionName();
#define JKQTMATHTEXT_LIB_EXPORT
Definition jkqtmathtext_imexport.h:108

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:

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

◆ JKQTMATHTEXT_LIB_EXPORT_LIBRARY

#define JKQTMATHTEXT_LIB_EXPORT_LIBRARY

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

◆ JKQTMATHTEXT_LIB_IN_DLL

#define JKQTMATHTEXT_LIB_IN_DLL

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