[Plib-users] multiple definitions
Brought to you by:
sjbaker
From: Mat D. <mdd...@en...> - 2002-11-09 01:30:16
|
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. |