Build Poco with C++11 on Mac OSX and Clang

Please post support and help requests here.
idiotbox07
Posts: 1
Joined: 10 Jan 2013, 13:50

Build Poco with C++11 on Mac OSX and Clang

Postby idiotbox07 » 10 Jan 2013, 13:55

Is there some way to build poco with c++11 on OSX? I have tried stdlib=libc++ and std=c++11 but during compilation I get an error about c++11 being incompatible with Darwin. When building I receive the following error:

Code: Select all

error: invalid argument '-std=c++11' not allowed with 'C/ObjC'
make[1]: *** [/Users/username/Downloads/poco-1.4.5/Foundation/obj/Darwin/x86_64/debug_shared/adler32.o] Error 1
make: *** [Foundation-libexec] Error 2


Is there a work around or is Poco going to upate to support this? Thanks

bquenin
Posts: 3
Joined: 22 Jan 2013, 02:09

Re: Build Poco with C++11 on Mac OSX and Clang

Postby bquenin » 22 Jan 2013, 02:21

Hi,

I just gave it a try and it seems to build fine with the following modifications to Darwin-clang (in build/config):

Code: Select all

CXXFLAGS        = $(ARCHFLAGS) -Wall -Wno-sign-compare -Wno-unused-variable -Wno-unused-function -Wno-unneeded-internal-declaration -std=c++11 -stdlib=libc++


and

Code: Select all

SYSLIBS  = -ldl -lc++


Note that I didn't try to use the libraries, just built them.

Regards,
BQ.


Return to “Support”

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest