revk / E3D

3D print slicing (STL to GCODE)
www.me.uk
61 stars 14 forks source link

Can not compile in MacOSX with clang #2

Open yangbo opened 8 years ago

yangbo commented 8 years ago

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.

revk commented 8 years ago

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 notifications@github.com 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 commented 8 years ago

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

On 20 Jul 2015, at 06:19, Bob Young notifications@github.com 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.