autoconf
[Top][All Lists]
Advanced

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

Re: Selecting C++ language


From: Mike Frysinger
Subject: Re: Selecting C++ language
Date: Mon, 21 May 2012 10:59:42 -0400
User-agent: KMail/1.13.7 (Linux/3.4.0-rc6; KDE/4.6.5; x86_64; ; )

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]