|
Boost : |
From: Michael LaSpina (laspinam_at_[hidden])
Date: 2004-05-06 12:45:57
> I believe that now all major changes are finished and the library is ready to
> be added to CVS. If nobody find any showstoppers within a week, I'll go
> ahead. I'd appreciate any comments on this version.
I needed to apply to following patch to compile under Mac OS X. It
appears that environ isn't available to dynamically linked libraries,
instead _NSGetEnviron() must be used.
- Mike
--- parsers.cpp Thu May 06 16:25:14 2004
+++ parsers.msl.cpp Thu May 06 13:27:07 2004
@@ -34,6 +34,11 @@
#include <unistd.h>
#endif
+#if defined(__APPLE__) && defined(__DYNAMIC__)
+#include <crt_externs.h>
+static char** environ = *_NSGetEnviron();
+#endif
+
using namespace std;
namespace boost { namespace program_options {
> Thanks in advance,
> Volodya
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>
--- parsers.cpp Thu May 06 16:25:14 2004
+++ parsers.msl.cpp Thu May 06 13:27:07 2004
@@ -34,6 +34,11 @@
#include <unistd.h>
#endif
+#if defined(__APPLE__) && defined(__DYNAMIC__)
+#include <crt_externs.h>
+static char** environ = *_NSGetEnviron();
+#endif
+
using namespace std;
namespace boost { namespace program_options {
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk