Pages in the PlatformCategory describe operatings systems, compilers, or hardware architectures.
To add a page to this category, add a link to this page on the last line of the page. You can add multiple categories to a page.
List of pages in this category:
<<FullSearch>>
Identifying a Platform
The table below is a summary of combinations of operating systems, compilers, and runtime libraries, and the preprocessor conditionals that can be used to distinguish between them. It was prompted by the discussion in STDCXX-2, specifically this comment.
|
Platform Identification Macros |
|
|
|
OS |
COMPILER |
RUNTIME |
MACROS |
|
gcc |
libsupc++ |
|
||
AIX |
IBM XLC/C++ |
libC |
|
|
gcc |
libsupc++ |
|
||
gcc |
libsupc++ |
|
||
HP-UX |
HP aCC 1 |
libCsup_v2.2 |
|
|
SGI MIPSpro |
|
{{_RWSTD_OS_IRIX64 && (_SGI_COMPILER_VERSION |
!GNUG)}} |
|
EDG eccp |
|
|
||
Linux |
gcc |
libsupc++ |
|
|
Linux |
IBM XLC++ |
? |
|
|
Linux |
Intel C++ 1 |
libsupc++, ? |
|
|
Linux |
Sun C++ |
|
|
|
gcc |
libsupc++ |
|
||
gcc |
libsupc++ |
|
||
EDG eccp |
|
|
||
Solaris |
gcc |
libsupc++ |
|
|
Solaris |
Sun C++ |
|
|
|
HP/Compaq/Digital C++ |
|
|
||
Borland C++ |
? |
|
||
Windows |
Digital Mars C++ |
? |
? |
|
Windows |
EDG eccp |
? |
|
|
Windows |
Intel C++ 1 |
libc(d).lib, libcmt(d).lib, msvcrt(d).lib |
|
|
Windows |
Visual C++ |
libc(d).lib, libcmt(d).lib, msvcrt(d).lib |
|
|
Windows/Cygwin |
gcc |
libsupc++ |
|
|
Windows/MinGW |
gcc |
libsupc++ |
|
(1) Uses EDG eccp front end.