I know that #error directive works at least with GCC and MSVC
#if !defined(__cplusplus) #error C++ compiler required. #endif But is it crossplatform and crosscompiler in general? Is it a part of some standard maybe?
PS. Because even looking at examples given in GCC and MSVC manuals one sees differences. While it works both with quotes or not, it makes a sad feeling, that it might be somehow compiler dependent.
GCC example
#error "Won't work on ..." // quotes here MSVC example
#error C++ compiler required. // no qutes
grepthrough them would have revealed. Do we really need a canonical thread for every trivial "Can I do X?" type question that people think up? I see what you mean, but surely there needs to be a cutoff point somewhere.