D
D
Daniel Demidko2017-04-27 09:59:11
C++ / C#
Daniel Demidko, 2017-04-27 09:59:11

Is it possible to specify a compiler flag through preprocessor directives?

Preview:
I'm participating in a programming competition. Wrote working code in C++14. But on the verification server, GCC 5.1 by default runs code without the -std=c++14 flag. Specifying a flag from the client side on the site is not possible. There is no desire to rewrite the code in C++03.
The question itself is:
How to specify a compiler flag through preprocessor directives, like #pragma ?
Googled, didn't find anything

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question