Re: Selecting C++ language

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday 21 May 2012 05:37:37 Steffen Dettmer wrote:
> for a project I needed to select C++98. When using g++, this is done
> by adding compiler flag "-std=c++98". I liked to have a compiler check
> whether this option works.

check out this:
http://www.gnu.org/software/autoconf-archive/ax_check_compile_flag.html

> I'm also not sure whether I should I set CXXFLAGS or CPPFLAGS?

CPP is for the preprocessor while CXX is for the C++ compiler.  i.e. you most 
likely want to just updated CXXFLAGS.
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux