Advertisement

OSX, Clang++, and getcwd

Started by July 17, 2012 01:41 PM
1 comment, last by WitchLord 12 years, 4 months ago
I've been working on getting the NLS Engine compiling and running under Mac OSX. After upgrading to Xcode 4.3, and configuring the project to use clang++ 3.1 as I found that Apple still hasn't upgraded g++ past 4.2, and we need the C++11 support, I found that there was a little problem hiding in the scriptbuilder add-on.

Everything was going well until scriptbuilder.cpp threw a compilation error: down on line 866 it complained that getcwd was an undeclared identifier. The fix was to just make sure that unistd.h was #included:

@@ -11,5 +11,5
#endif

-#if defined(AS_MARMALADE)
+#if defined(AS_MARMALADE) || defined(__APPLE__)
#include <unistd.h>
#endif
Thanks, I'll Include this change in the svn.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Advertisement
Change checked-in to revision 1364.

Thanks,
Andreas

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement