A while back, I was going through the OpenSG 1.4.0 tutorials in the
OpenSG Starter Guide on my Mac (running OS X 10.3.8), but I was unable
to compile the exercises without modifying OSGConfig.h.  I had to add
the following to near top of the file where there are cases for IRIX and
HP-UX:

#ifdef __APPLE__
#define darwin
#endif

The symbol 'darwin' is not defined by GCC 3.3 by default.  Since I
didn't have any problem compiling OpenSG itself, it occurred to me that
I must be doing something wrong when compiling the applications.
Should I be adding -Ddarwin to the compiler flags manually?  The output
from running 'osg-config --cflags' does not include that flag.

 -Patrick


-- 
Patrick L. Hartling                    | VP Engineering, Infiscape Corp.
PGP: http://tinyurl.com/2msw3          | http://www.infiscape.com/

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to