E3D icon indicating copy to clipboard operation
E3D copied to clipboard

Can not compile in MacOSX with clang

Open yangbo opened this issue 10 years ago • 2 comments

I try to compile the project in Mac OS X, but there are errors about 'nested-functions'. Because Apple CLang compiler does not support 'nested function' features, so I can not compile it. My CLang version is: gcc --version Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn) Target: x86_64-apple-darwin14.4.0 Thread model: posix

Any idea? Thanks.

yangbo avatar Jul 20 '15 05:07 yangbo

I thought that was a standard gcc feature. I suspect there will be a flag for it. But otherwise, no, sorry.

On 20 Jul 2015, at 06:19, Bob Young [email protected] wrote:

I try to compile the project in Mac OS X, but there are errors about 'nested-functions'. Because Apple CLang compiler does not support 'nested function' features, so I can not compile it. My CLang version is: gcc --version Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn) Target: x86_64-apple-darwin14.4.0 Thread model: posix

Any idea? Thanks.

— Reply to this email directly or view it on GitHub.

revk avatar Jul 20 '15 06:07 revk

The thread model posix is probably the clue as that is not posix afaik.

On 20 Jul 2015, at 06:19, Bob Young [email protected] wrote:

I try to compile the project in Mac OS X, but there are errors about 'nested-functions'. Because Apple CLang compiler does not support 'nested function' features, so I can not compile it. My CLang version is: gcc --version Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn) Target: x86_64-apple-darwin14.4.0 Thread model: posix

Any idea? Thanks.

— Reply to this email directly or view it on GitHub.

revk avatar Jul 20 '15 06:07 revk