Thread: [Plib-users] OSX tons of errors using FNT
Brought to you by:
sjbaker
From: Wesley S. <wes...@gm...> - 2005-06-21 00:58:03
|
Hi, I'm trying to use the font part of plib. I included #include <plib/fnt.h> in my header file and did a -lplibfnt for the linker.=20 The thing is when I go to make the project, I get massive amounts of errors from the plib header files. Here's a sampling: /usr/include/plib/ul.h: In function `void ulEndianSwap(short unsigned int*)= ': /usr/include/plib/ul.h:343: error: declaration of C function `void=20 ulEndianSwap(short unsigned int*)' conflicts with /usr/include/plib/ul.h:334: error: previous declaration `void=20 ulEndianSwap(unsigned int*)' here /usr/include/plib/ul.h: In function `void ulEndianSwap(float*)': /usr/include/plib/ul.h:349: error: declaration of C function `void=20 ulEndianSwap(float*)' conflicts with /usr/include/plib/ul.h:343: error: previous declaration `void=20 ulEndianSwap(short unsigned int*)' here /usr/include/plib/ul.h: In function `void ulEndianSwap(unsigned int*)': /usr/include/plib/ul.h:349: error: cannot convert `unsigned int*' to `float= *'=20 for argument `1' to `void ulEndianSwap(float*)' /usr/include/plib/ul.h: In function `void ulEndianSwap(int*)': /usr/include/plib/ul.h:350: error: declaration of C function `void=20 ulEndianSwap(int*)' conflicts with /usr/include/plib/ul.h:349: error: previous declaration `void=20 ulEndianSwap(float*)' here Is there a compiler setting or namespace issue that I'm missing? I'm not sure why all of the errors. Here's my compilation command: g++ -I/usr/local/include -I/usr/local/include/FL/images -I/sw/include=20 -c -o GL_disp.o GL_disp.cpp thanks for any suggestions, wes |
From: Wesley S. <wes...@gm...> - 2005-06-21 01:19:34
|
Guess I should've searched the archives before asking 'cause I found my ans= wer. thanks, wes On 6/20/05, Wesley Smith <wes...@gm...> wrote: > Hi, >=20 > I'm trying to use the font part of plib. I included #include > <plib/fnt.h> in my header file and did a -lplibfnt for the linker. > The thing is when I go to make the project, I get massive amounts of > errors from the plib header files. Here's a sampling: >=20 > /usr/include/plib/ul.h: In function `void ulEndianSwap(short unsigned int= *)': > /usr/include/plib/ul.h:343: error: declaration of C function `void > ulEndianSwap(short unsigned int*)' conflicts with > /usr/include/plib/ul.h:334: error: previous declaration `void > ulEndianSwap(unsigned int*)' here > /usr/include/plib/ul.h: In function `void ulEndianSwap(float*)': > /usr/include/plib/ul.h:349: error: declaration of C function `void > ulEndianSwap(float*)' conflicts with > /usr/include/plib/ul.h:343: error: previous declaration `void > ulEndianSwap(short unsigned int*)' here > /usr/include/plib/ul.h: In function `void ulEndianSwap(unsigned int*)': > /usr/include/plib/ul.h:349: error: cannot convert `unsigned int*' to `flo= at*' > for argument `1' to `void ulEndianSwap(float*)' > /usr/include/plib/ul.h: In function `void ulEndianSwap(int*)': > /usr/include/plib/ul.h:350: error: declaration of C function `void > ulEndianSwap(int*)' conflicts with > /usr/include/plib/ul.h:349: error: previous declaration `void > ulEndianSwap(float*)' here >=20 > Is there a compiler setting or namespace issue that I'm missing? I'm > not sure why all of the errors. Here's my compilation command: > g++ -I/usr/local/include -I/usr/local/include/FL/images -I/sw/include > -c -o GL_disp.o GL_disp.cpp >=20 > thanks for any suggestions, > wes > |
From: Steve B. <sjb...@ai...> - 2005-06-21 04:03:45
|
Wesley Smith wrote: > Hi, > > I'm trying to use the font part of plib. I included #include > <plib/fnt.h> in my header file and did a -lplibfnt for the linker. > The thing is when I go to make the project, I get massive amounts of > errors from the plib header files. FNT relies on the PLIB 'UL' and 'SG' libraries - so you'll need to link those in too. ---------------------------- Steve Baker ------------------------- HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://www.sjbaker.org Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net -----BEGIN GEEK CODE BLOCK----- GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ -----END GEEK CODE BLOCK----- |
From: Wesley S. <wes...@gm...> - 2005-06-21 04:10:25
|
I actually got away with just linking to the FNT and UL libraries. wes On 6/20/05, Steve Baker <sjb...@ai...> wrote: > Wesley Smith wrote: > > Hi, > > > > I'm trying to use the font part of plib. I included #include > > <plib/fnt.h> in my header file and did a -lplibfnt for the linker. > > The thing is when I go to make the project, I get massive amounts of > > errors from the plib header files. >=20 > FNT relies on the PLIB 'UL' and 'SG' libraries - so you'll need to > link those in too. >=20 > ---------------------------- Steve Baker ------------------------- > HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> > HomePage : http://www.sjbaker.org > Projects : http://plib.sf.net http://tuxaqfh.sf.net > http://tuxkart.sf.net http://prettypoly.sf.net > -----BEGIN GEEK CODE BLOCK----- > GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- > V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ > -----END GEEK CODE BLOCK----- >=20 >=20 > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=3D7477&alloc_id=3D16492&op=3Dclic= k > _______________________________________________ > plib-users mailing list > pli...@li... > https://lists.sourceforge.net/lists/listinfo/plib-users > |