atilaneves / dpp

Directly include C headers in D source code
Boost Software License 1.0
231 stars 31 forks source link

how to pass flags: -std=c++11 #311

Open mw66 opened 2 years ago

mw66 commented 2 years ago

Got this error:

/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/c++0x_warning.h:32:2: error: This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.

Just wonder how to pass flags to d++?

atilaneves commented 2 years ago

Pass any C++ compiler flags directly to d++. It ignores flags it doesn't recognise and passes them on.