Re: [Plib-users] multiple definitions
Brought to you by:
sjbaker
From: Mat D. <mdd...@en...> - 2002-11-09 01:45:18
|
the exact g++ errors are: Mkdir /Volumes/Storage/mat/Desktop/ttt3d-0.2.0/ttt3d/build/ttt3d.build/ ttt3d.build/Objects-normal/ppc CompileCplusplus /Volumes/Storage/mat/Desktop/ttt3d-0.2.0/ttt3d/build/ttt3d.build/ ttt3d.build/Objects-normal/ppc/cell.o In file included from /usr/include/plib/ssg.h:28, from /Volumes/Storage/mat/Desktop/ttt3d-0.2.0/src/p3d.h:36, from /Volumes/Storage/mat/Desktop/ttt3d-0.2.0/src/cell.cxx:25: /usr/include/plib/sg.h: In function `void sgMakeCoordMat4(float (*)[4], const float*, const float*)': /usr/include/plib/sg.h:145: declaration of C function `void sgMakeCoordMat4(float (*)[4], const float*, const float*)' conflicts with /usr/include/plib/sg.h:142: previous declaration `void sgMakeCoordMat4(float (*)[4], float, float, float, float, float, float)' here These are the kinds of errors Im getting. It might be interesting to note that it says "declaration of C function".....but I still don't know how to fix it mat. On Friday, November 8, 2002, at 08:26 PM, Mat Davidson wrote: > Im running Mac OSX Jaguar, GCC 3.1 > > I can compile the libs from source and install them without a problem. > When I try to use the libs though I get a ton of errors associated > with the use of "inline" translation functions and overloads used in > header files such as ul.h and sg.h. For example, the following code > throws errors: > > ul.h: line 275 > static inline void _ulEndianSwap(unsigned int *x) { > *x = (( *x >> 24 ) & 0x000000FF ) | > (( *x >> 8 ) & 0x0000FF00 ) | > (( *x << 8 ) & 0x00FF0000 ) | > (( *x << 24 ) & 0xFF000000 ) ; > } > > static inline void _ulEndianSwap(unsigned short *x) { > *x = (( *x >> 8 ) & 0x00FF ) | > (( *x << 8 ) & 0xFF00 ) ; > } > > and also > > > sg.h: line 835 > extern void sgReflectInPlaneVec3 ( sgVec3 dst, const sgVec3 src, const > sgVec4 plane ) ; > inline void sgReflectInPlaneVec3 ( sgVec3 dst, const sgVec4 plane ) > { > sgReflectInPlaneVec3 ( dst, dst, plane ) ; > } > > > > Im compiling the projects with g++. Has anyone ever run into this? > Theres no way I can use plib like this, hopefully theres a way to fix > this. Please let me know if you have any ideas. > > > mat. |