Hello,
I want to use DXLite library in my C++ module. I work on RedHat 7.0 and try
to compile with GNU g++ compiler. Unfortunately, I've got some errors, the
listing is in the end of my message.
Can anybody help me with this problem?
---------------------------------------------------------------------------------------------------------------
make
g++ -I../include -I../expat/xmlparse -I/opt/dx/include -g -Wall -c
Geometry.cc
In file included from /opt/dx/include/dx/dx.h:39,
from Geometry.cc:11:
/opt/dx/include/dx/basic.h:144: warning: aggregate has a partly bracketed
initializer
/opt/dx/include/dx/basic.h:144: warning: aggregate has a partly bracketed
initializer
/opt/dx/include/dx/basic.h:144: warning: aggregate has a partly bracketed
initializer
/opt/dx/include/dx/basic.h:144: warning: aggregate has a partly bracketed
initializer
/opt/dx/include/dx/basic.h:144: warning: aggregate has a partly bracketed
initializer
In file included from /opt/dx/include/dx/dx.h:75,
from Geometry.cc:11:
/opt/dx/include/dx/UserInteractors.h:98: declaration of `void
*(*_userInteractor::InitMode) (object *,
int, int, int *)'
/opt/dx/include/dx/UserInteractors.h:84: changes meaning of `InitMode' from
`typedef void *(*InitMode)
(struct object *, int, int, int *)'
/opt/dx/include/dx/UserInteractors.h:99: declaration of `void
(*_userInteractor::EndMode) (void *)'
/opt/dx/include/dx/UserInteractors.h:85: changes meaning of `EndMode' from
`typedef void (*EndMode)
(void *)'
/opt/dx/include/dx/UserInteractors.h:100: declaration of `void
(*_userInteractor::SetCamera) (void *,
float *, float *, float *, int, float, float)'
/opt/dx/include/dx/UserInteractors.h:87: changes meaning of `SetCamera' from
`typedef void (*SetCamera)
(void *, float *, float *, float *, int, float, float)'
/opt/dx/include/dx/UserInteractors.h:101: declaration of `int
(*_userInteractor::GetCamera) (void *,
float *, float *, float *, int *, float *, float *)'
/opt/dx/include/dx/UserInteractors.h:89: changes meaning of `GetCamera' from
`typedef int (*GetCamera)
(void *, float *, float *, float *, int *, float *, float *)'
/opt/dx/include/dx/UserInteractors.h:102: declaration of `void
(*_userInteractor::SetRenderable) (void
*, object *)'
/opt/dx/include/dx/UserInteractors.h:90: changes meaning of `SetRenderable'
from `typedef void
(*SetRenderable) (void *, struct object *)'
/opt/dx/include/dx/UserInteractors.h:103: declaration of `int
(*_userInteractor::GetRenderable) (void
*, object **)'
/opt/dx/include/dx/UserInteractors.h:91: changes meaning of `GetRenderable'
from `typedef int
(*GetRenderable) (void *, struct object **)'
/opt/dx/include/dx/UserInteractors.h:104: declaration of `void
(*_userInteractor::EventHandler) (void
*, DXEvent *)'
/opt/dx/include/dx/UserInteractors.h:93: changes meaning of `EventHandler'
from `typedef void
(*EventHandler) (void *, union DXEvent *)'
In file included from Geometry.cc:14:
/usr/include/g++-3/string:9: conflicting types for `typedef class
basic_string<char, string_char_traits<char>,
__default_alloc_template<true, 0> > string'
/opt/dx/include/dx/object.h:27: previous declaration as `struct string'
/opt/dx/include/dx/basic.h:139: warning: `Matrix Identity' defined but not
used
make: *** [Geometry.o] Error 1
Compilation exited abnormally with code 2 at Wed Aug 8 10:22:41
--
Igor L.Grivko, PhD
Pangea Inc.
Voice: (095) 973 0573, 251 4137
E-mail: [EMAIL PROTECTED]