Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) PreprocessorSwitchGccVersion

 

STLQt CreatorLubuntu

 

CppPreprocessorSwitchGccVersion displays how to switch on the GCC version.

 

Technical facts

 

Operating system(s) or programming environment(s)

IDE(s):

Project type:

C++ standard:

Compiler(s):

Libraries used:

 

 

 

 

 

Qt project file: ./CppPreprocessorSwitchGccVersion/CppPreprocessorSwitchGccVersion.pro

 

TEMPLATE = app
CONFIG += console
CONFIG -= app_bundle
CONFIG -= qt

SOURCES += main.cpp

 

 

 

 

 

./CppPreprocessorSwitchGccVersion/main.cpp

 


#if !(__GNUC__ >= 4 && __GNUC_MINOR__ >= 9)
#warning Newest compiler
#else
#error Your compiler is older than mine
#endif

int main() { }

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict

This page has been created by the tool CodeToHtml