Jump to content

  • Log In with Google      Sign In   
  • Create Account

14 years ago on June 15th Gamedev.net was first launched! We want to thank all of you for being part of our community and hope the best years are ahead of us. Happy birthday Gamedev.net!

- - - - -

OSX, Clang++, and getcwd


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 Ricky C.   Members   -  Reputation: 132

Like
0Likes
Like

Posted 17 July 2012 - 07:41 AM

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


Sponsor:

#2 Andreas Jonsson   Moderators   -  Reputation: 2343

Like
0Likes
Like

Posted 18 July 2012 - 06:29 AM

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

#3 Andreas Jonsson   Moderators   -  Reputation: 2343

Like
0Likes
Like

Posted 19 July 2012 - 08:56 AM

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




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS