Version information for conditional compilation missing

2744
1
Jump to solution
08-06-2015 12:22 AM
NorbertThoden
Occasional Contributor III

Unfortunately there is no version information (Major: 10, Minor: 2, Patch 6 -> 10.2.6) available neither during compile time nor during runtime.

Example:

(taken vom qglobal - Qt5.4)

     #define QT_VERSION_STR   "5.4.1"
     //   QT_VERSION is (major << 16) + (minor << 😎 + patch.

     #define QT_VERSION 0x050401

     //   can be used like #if (QT_VERSION >= QT_VERSION_CHECK(4, 4, 0))

     #define QT_VERSION_CHECK(major, minor, patch) ((major<<16)|(minor<<8)|(patch))

How shall i make code compatible to 10.2.3, 10.2.5 and 10.2.6 keeping the api modification in mind.....

Thanks

0 Kudos
1 Solution

Accepted Solutions
LucasDanzinger
Esri Frequent Contributor

Hey Norbert-

This isn't available OOTB.  You could try to add an additional entry to the DEFINES list in the pro file.  Then if you are building against 10.2.3, use the 10.2.3 headers and define ARCGIS_VERSION_10_2_3 or something like that, and so on for each different version.

-Luke

View solution in original post

1 Reply
LucasDanzinger
Esri Frequent Contributor

Hey Norbert-

This isn't available OOTB.  You could try to add an additional entry to the DEFINES list in the pro file.  Then if you are building against 10.2.3, use the 10.2.3 headers and define ARCGIS_VERSION_10_2_3 or something like that, and so on for each different version.

-Luke