Boost logo

Boost :

Subject: Re: [boost] [1.61.0][container] Error compiling alloc_lib.c with -std=c++11
From: Richard Hadsell (hadsell_at_[hidden])
Date: 2016-07-05 15:11:40


On 07/01/2016 04:05 PM, Ion Gaztañaga wrote:
>
>> These are the options from my user-config:
>>
>> using clang : 3.5.0 : [snip]/clang++ : <compileflags>"-std=c++11 -fPIC
>> -gcc-toolchain [snip]/gcc/4.8.3 -Wno-[snip]" <linkflags>"-fPIC
>> -gcc-toolchain [snip]/gcc/4.8.3" ;
>>
>> I don't see a way to provide C++-only flags or C-only flags. Actually, I
>> thought that all Boost source files would be C++.
>
> <cxxflags>/<cflags> instead of <compileflags>?
>
> Best,
>
> Ion
Thanks. That worked. I am using cxxflags and cflags for the C++ and C-specific flags, and compileflags for the common options (e.g., -fPIC -gcc-toolchain ...).

-- 
Dick Hadsell			203-992-6320  Fax: 203-992-6001
Reply-to:			hadsell_at_[hidden]
Blue Sky Studioshttp://www.blueskystudios.com
1 American Lane, Greenwich, CT 06831-2560

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk