Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - jstark

Pages: [1]
1
General / Re: Compiling SFML 2.1 in OS X 10.9.5 and C++11 support
« on: September 29, 2014, 09:27:06 pm »
I think yes, but if I misread something, please forgive me. I'll give them another look right now.

@eXpl0it3r

Well, forgive me, I made a mistake (forgot a -DCMAKE_C_FLAGS option). I apologize. 

2
General / Compiling SFML 2.1 in OS X 10.9.5 and C++11 support
« on: September 29, 2014, 08:46:30 pm »
Hi,

I'm trying to compile SFML 2.1 from sources on OS X 10.9.5 (Xcode 6.0.1). I'm generating the required Makefile with

cmake -DCMAKE_CXX_FLAGS="-std=c++11 -stdlib=libc++"

and I'm getting the following errors after running make:

Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/OSX/SFApplication.m.o
error: invalid argument '-std=c++11' not allowed with 'C/ObjC'
make[2]: *** [src/SFML/Window/CMakeFiles/sfml-window.dir/OSX/SFApplication.m.o] Error 1


I'm guessing that some *.m files are passed to clang++ and there is a conflict there. I renamed all *.m files to *.mm and after fixing another compiler error (a simple cast) everything worked fine.

So, am I mistaken ? Or is this a known issue in OS X ?


Pages: [1]