[osg-users] Please test SVN version of OpenSceneGraph

Alberto Luaces aluaces at udc.es
Tue Oct 9 01:30:45 PDT 2007


Brian,

here are my results:

$ g++ testfile.cpp -E -dM | grep unix
#define __unix 1
#define __unix__ 1
#define unix 1

and

$ g++ -v
Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured 
with: /usr/build/package/orig/test.respin/gcc-3.4.4-3/configure --verbose --prefix=/usr --exec-prefix=/usr --
sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-langu
ages=c,ada,c++,d,f77,pascal,java,objc --enable-nls --without-included-gettext --enable-version-specific-runtime-libs --w
ithout-x --enable-libgcj --disable-java-awt --with-system-zlib --enable-interpreter --disable-libgcj-debug --enable-thre
ads=posix --enable-java-gc=boehm --disable-win32-registry --enable-sjlj-exceptions --enable-hash-synchronization --enabl
e-libstdcxx-debug
Thread model: posix
gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)

So I think we are using the same configuration. What I find surprising is that 
your compiler is throwing an error about lines 931, 952 and 955, when those 
lines should be cancelled by the

#if !(defined(__CYGWIN__) || defined(WIN32))

definition, since __CYGWIN__ macro is defined on our compilers.

For reference, these are the default defines that I'm using (cmake defaults):

CMAKE_CXX_FLAGS=' '
CMAKE_CXX_FLAGS_DEBUG=-g
CMAKE_CXX_FLAGS_MINSIZEREL=-Os -DNDEBUG
CMAKE_CXX_FLAGS_RELEASE=-O3 -DNDEBUG
CMAKE_CXX_FLAGS_RELWITHDEBINFO=-O2 -g
CMAKE_C_FLAGS=' '
CMAKE_C_FLAGS_DEBUG=-g
CMAKE_C_FLAGS_MINSIZEREL=-Os -DNDEBUG
CMAKE_C_FLAGS_RELEASE=-O3 -DNDEBUG
CMAKE_C_FLAGS_RELWITHDEBINFO=-O2 -g

Maybe we can compare the output of the compiler command line when compiling 
sockstream.cpp by toggling 'on' the CMAKE_VERBOSE_MAKEFILE switch in the 
cmake advanced configuration, page 2.

Regards,

Alberto



More information about the osg-users mailing list