plib-users Mailing List for PLIB (Page 15)
Brought to you by:
sjbaker
You can subscribe to this list here.
2000 |
Jan
|
Feb
(24) |
Mar
(54) |
Apr
(29) |
May
(58) |
Jun
(29) |
Jul
(675) |
Aug
(46) |
Sep
(40) |
Oct
(102) |
Nov
(39) |
Dec
(40) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(45) |
Feb
(23) |
Mar
(30) |
Apr
(64) |
May
(28) |
Jun
(61) |
Jul
(55) |
Aug
(35) |
Sep
(24) |
Oct
(23) |
Nov
(21) |
Dec
(67) |
2002 |
Jan
(98) |
Feb
(23) |
Mar
(13) |
Apr
(23) |
May
(43) |
Jun
(45) |
Jul
(54) |
Aug
(5) |
Sep
(56) |
Oct
(17) |
Nov
(53) |
Dec
(26) |
2003 |
Jan
(67) |
Feb
(36) |
Mar
(22) |
Apr
(35) |
May
(26) |
Jun
(35) |
Jul
(10) |
Aug
(49) |
Sep
(17) |
Oct
(3) |
Nov
(30) |
Dec
(10) |
2004 |
Jan
(12) |
Feb
(18) |
Mar
(52) |
Apr
(50) |
May
(22) |
Jun
(13) |
Jul
(16) |
Aug
(23) |
Sep
(21) |
Oct
(29) |
Nov
(6) |
Dec
(26) |
2005 |
Jan
(9) |
Feb
(19) |
Mar
(13) |
Apr
(19) |
May
(12) |
Jun
(8) |
Jul
(6) |
Aug
(10) |
Sep
(22) |
Oct
(3) |
Nov
(6) |
Dec
(17) |
2006 |
Jan
(10) |
Feb
(8) |
Mar
(5) |
Apr
(5) |
May
(6) |
Jun
(8) |
Jul
(8) |
Aug
(13) |
Sep
(2) |
Oct
(1) |
Nov
(9) |
Dec
(6) |
2007 |
Jan
(3) |
Feb
(4) |
Mar
(12) |
Apr
(2) |
May
(6) |
Jun
|
Jul
(22) |
Aug
|
Sep
(9) |
Oct
(13) |
Nov
|
Dec
|
2008 |
Jan
(1) |
Feb
(6) |
Mar
(2) |
Apr
(4) |
May
(15) |
Jun
(28) |
Jul
(8) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2009 |
Jan
(5) |
Feb
(5) |
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
|
Mar
(2) |
Apr
(7) |
May
(4) |
Jun
(2) |
Jul
(5) |
Aug
|
Sep
|
Oct
(3) |
Nov
|
Dec
|
2011 |
Jan
(7) |
Feb
(2) |
Mar
(1) |
Apr
|
May
(4) |
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
(1) |
Nov
(4) |
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(4) |
Nov
|
Dec
|
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2024 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
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: Kevin W. <wa...@co...> - 2005-06-19 16:19:09
|
Okay, I figured it out. You can grab the first kid of the branch, cast it to ssgLeaf and use setState on that. This seems cumbersome, why not have ssgaSphere return an ssgaShape or at least an ssga Leaf? It seems odd to return a ssgBranch. Kevin On Jun 19, 2005, at 9:59 AM, Kevin Walchko wrote: > Hi, > > How do I texture map a ssgaSphere? I search the archives, but > couldn't figure it out. Since it is an ssgBranch, i can't use > setState function and it isn't clear how to use a ssgTexture. > Thanks. > > Kevin > > > ------------------------------------------------------- > 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=7477&alloc_id=16492&op=click > _______________________________________________ > plib-users mailing list > pli...@li... > https://lists.sourceforge.net/lists/listinfo/plib-users > |
From: Kevin W. <wa...@co...> - 2005-06-19 15:59:42
|
Hi, How do I texture map a ssgaSphere? I search the archives, but couldn't figure it out. Since it is an ssgBranch, i can't use setState function and it isn't clear how to use a ssgTexture. Thanks. Kevin |
From: Kevin W. <wa...@co...> - 2005-06-19 15:25:17
|
Hi, Have you ever thought of using Doxygen (http://www.stack.nl/~dimitri/ doxygen/) to document your code. It would make the code easier to work with, but then again good documentation always helps. Later. Kevin |
From: Paolo S. <ax...@ti...> - 2005-05-25 09:20:44
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, is there a deterministic behavior in how entities' order in ssg scene affects translucent entities' visualization? Changing the order in which I create the entities causes unexpected results: I can see a entity only through one created after. Is this a known bug? Or am I wrong expecting to see translucent entities through other translucent entities? I hope I have explained the problem in an understandable way, but I have some screen shots to show if you need them, just ask. TIA! :) - -- Paolo Sacconier -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFClENCPjn4ZdRrJmARAu1iAJ9n7dklY5WYmtFObRQSl4qJXxJf7ACff7Li NrVfXdiHc/1IdRSeL1E8pN8= =SsAK -----END PGP SIGNATURE----- |
From: Slowhand_47 <slo...@gm...> - 2005-05-20 18:50:06
|
Hello, I've just noticed that there seems to be a problem with the water demo in the plib examples pack. I can recall that using the 1.8.1 examples and linking it against 1.8.3 worked fine. Now I compiled the demos again, linking them with 1.8.4. All ssg demos look fine except the water demo. It seems to lack proper lighting. All objects are only dark shapes. Switching to wireframe mode works fine, but there seems to be no lighting. All "wires" are equally black. I've tested this on my Linux machine (Debian, 2.6.10, NVidia card and drivers) and on a WinXP machine (with some onboard Intel graphics adapter). Can anyone confirm this? Any solution? Kind regards, Jan R. -- Jan Reucker email: jan dot reucker at web dot de web: http://www.reucker-online.de |
From: Kevin W. <wa...@co...> - 2005-05-20 03:40:07
|
Hi, I don't think this made it to the mailing list for some reason, so I am sending it again. Had to make the following 2 corrections to get plib to compile on Mac OS X 10.4 (Tiger): 1. JS Code: had to remove the static declaration on the member function. ? .deps ? Makefile ? Makefile.in cvs diff: Diffing . Index: jsMacOSX.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/js/jsMacOSX.cxx,v retrieving revision 1.4 diff -r1.4 jsMacOSX.cxx 278c278 < static void os_specific_s::elementEnumerator( const void *element, void* vjs) --- > void os_specific_s::elementEnumerator( const void *element, void* vjs) 2. PW Code: had to cast the strings to ConstStr255Param to avoid an error about invalid conversion from 'const char*' to 'const unsigned char*' ? .deps ? Makefile ? Makefile.in ? my.diff Index: pwMacOSX.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/pw/pwMacOSX.cxx,v retrieving revision 1.7 diff -r1.7 pwMacOSX.cxx 314c314 < MenuHandle menu = NewMenu(mApple, "\p\024"); --- > MenuHandle menu = NewMenu(mApple, (ConstStr255Param)"\p\024"); 317c317 < InsertMenuItem(menu, "\pAbout Plib...", 0); --- > InsertMenuItem(menu, (ConstStr255Param)"\pAbout Plib...", 0); 328c328 < menu = NewMenu (mFile, "\pFile"); // new menu --- > menu = NewMenu (mFile, (ConstStr255Param)"\pFile"); // new menu 330c330 < AppendMenu (menu, "\pQuit/Q"); // add items --- > AppendMenu (menu, (ConstStr255Param)"\pQuit/ Q"); // add items 373c373 < "\pfor more infos see <http:// plib.sourceforge.net>", --- > (ConstStr255Param)"\pfor more infos see <http://plib.sourceforge.net>", |
From: Kevin W. <wa...@co...> - 2005-05-18 01:17:23
|
I searched through the archives and found the solution -- I some how missed it before. create a soft link in the /usr/include/gcc/darwin/3.3/c++ directory pointing to the /usr/include/plib/-directory. That seems to work like a charm, but it bugs me that I have to do it in the first place! Maybe there is a way to modify the ul.h file or modify the make install command (which I also don't like) to do the soft link automatically. On May 17, 2005, at 5:21 PM, Kevin Walchko wrote: > Okay, since I mentioned the examples (which currently don't > compile for me due to the same reason), when I run configure I get > the following warning: > > checking plib/ul.h presence... yes > configure: WARNING: plib/ul.h: present but cannot be compiled > configure: WARNING: plib/ul.h: check for missing prerequisite > headers? > configure: WARNING: plib/ul.h: see the Autoconf documentation > configure: WARNING: plib/ul.h: section "Present But Cannot Be > Compiled" > configure: WARNING: plib/ul.h: proceeding with the preprocessor's > result > configure: WARNING: plib/ul.h: in the future, the compiler will > take precedence > configure: WARNING: ## > ------------------------------------------ ## > configure: WARNING: ## Report this to the AC_PACKAGE_NAME > lists. ## > configure: WARNING: ## > ------------------------------------------ ## > checking for plib/ul.h... yes > > What does this mean? > > On May 17, 2005, at 4:48 PM, Kevin Walchko wrote: > > >> Yes, there is much discussion, but I did not find a solution -- >> maybe I missed it. I also have the problem from the command line >> using make when I try to compile the examples, so it has to do >> with gcc/make and not XCode (which was my original assumption). >> >> >> On May 17, 2005, at 6:27 PM, Steve Baker wrote: >> >> >> >>> Kevin Walchko wrote: >>> >>> >>> >>>> Okay, I have looked around on the internet and it seems to be >>>> more of a gcc problem than a Mac OS X problem. For some reason, >>>> the compiler is trying to process the file (ul.h) as an extern >>>> "C" file rather than a c++ file. I can't seem to make XCode >>>> stop doing this. >>>> >>>> >>>> >>> >>> I thought we'd already discussed this - you might want to check >>> the archives. >>> (Possibly the 'plib-devel' archives rather than 'plib-users'). >>> >>> ---------------------------- 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----- >>> >>> >>> ------------------------------------------------------- >>> This SF.Net email is sponsored by Oracle Space Sweepstakes >>> Want to be the first software developer in space? >>> Enter now for the Oracle Space Sweepstakes! >>> http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click >>> _______________________________________________ >>> plib-users mailing list >>> pli...@li... >>> https://lists.sourceforge.net/lists/listinfo/plib-users >>> >>> >>> >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by Oracle Space Sweepstakes >> Want to be the first software developer in space? >> Enter now for the Oracle Space Sweepstakes! >> http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click >> _______________________________________________ >> plib-users mailing list >> pli...@li... >> https://lists.sourceforge.net/lists/listinfo/plib-users >> >> > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click > _______________________________________________ > plib-users mailing list > pli...@li... > https://lists.sourceforge.net/lists/listinfo/plib-users > |
From: Kevin W. <wa...@co...> - 2005-05-17 23:22:09
|
Okay, since I mentioned the examples (which currently don't compile for me due to the same reason), when I run configure I get the following warning: checking plib/ul.h presence... yes configure: WARNING: plib/ul.h: present but cannot be compiled configure: WARNING: plib/ul.h: check for missing prerequisite headers? configure: WARNING: plib/ul.h: see the Autoconf documentation configure: WARNING: plib/ul.h: section "Present But Cannot Be Compiled" configure: WARNING: plib/ul.h: proceeding with the preprocessor's result configure: WARNING: plib/ul.h: in the future, the compiler will take precedence configure: WARNING: ## ------------------------------------------ ## configure: WARNING: ## Report this to the AC_PACKAGE_NAME lists. ## configure: WARNING: ## ------------------------------------------ ## checking for plib/ul.h... yes What does this mean? On May 17, 2005, at 4:48 PM, Kevin Walchko wrote: > Yes, there is much discussion, but I did not find a solution -- > maybe I missed it. I also have the problem from the command line > using make when I try to compile the examples, so it has to do with > gcc/make and not XCode (which was my original assumption). > > > On May 17, 2005, at 6:27 PM, Steve Baker wrote: > > >> Kevin Walchko wrote: >> >> >>> Okay, I have looked around on the internet and it seems to be >>> more of a gcc problem than a Mac OS X problem. For some reason, >>> the compiler is trying to process the file (ul.h) as an extern >>> "C" file rather than a c++ file. I can't seem to make XCode stop >>> doing this. >>> >>> >> >> I thought we'd already discussed this - you might want to check >> the archives. >> (Possibly the 'plib-devel' archives rather than 'plib-users'). >> >> ---------------------------- 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----- >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by Oracle Space Sweepstakes >> Want to be the first software developer in space? >> Enter now for the Oracle Space Sweepstakes! >> http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click >> _______________________________________________ >> plib-users mailing list >> pli...@li... >> https://lists.sourceforge.net/lists/listinfo/plib-users >> >> > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click > _______________________________________________ > plib-users mailing list > pli...@li... > https://lists.sourceforge.net/lists/listinfo/plib-users > |
From: Kevin W. <wa...@co...> - 2005-05-17 22:48:37
|
Yes, there is much discussion, but I did not find a solution -- maybe I missed it. I also have the problem from the command line using make when I try to compile the examples, so it has to do with gcc/make and not XCode (which was my original assumption). On May 17, 2005, at 6:27 PM, Steve Baker wrote: > Kevin Walchko wrote: > >> Okay, I have looked around on the internet and it seems to be more >> of a gcc problem than a Mac OS X problem. For some reason, the >> compiler is trying to process the file (ul.h) as an extern "C" >> file rather than a c++ file. I can't seem to make XCode stop >> doing this. >> > > I thought we'd already discussed this - you might want to check the > archives. > (Possibly the 'plib-devel' archives rather than 'plib-users'). > > ---------------------------- 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----- > > > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click > _______________________________________________ > plib-users mailing list > pli...@li... > https://lists.sourceforge.net/lists/listinfo/plib-users > |
From: Steve B. <sjb...@ai...> - 2005-05-17 22:35:21
|
Kevin Walchko wrote: > Okay, I have looked around on the internet and it seems to be more of a > gcc problem than a Mac OS X problem. For some reason, the compiler is > trying to process the file (ul.h) as an extern "C" file rather than a > c++ file. I can't seem to make XCode stop doing this. I thought we'd already discussed this - you might want to check the archives. (Possibly the 'plib-devel' archives rather than 'plib-users'). ---------------------------- 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: Steve B. <sjb...@ai...> - 2005-05-17 22:34:00
|
Kevin Walchko wrote: > I downloaded plib from CVS and tried to compile it. Why doesn't the CVS > have the necessary configure scripts and Make files to build the library? To expand a bit on previous answers: A CVS repository is supposed to contain only the ultimate sources of everything. Since those configure scripts and makefiles are generated from the ultimate sources (configure.in, Makefile.am, etc) - they don't qualify for inclusion into CVS - which is why they aren't (and shouldn't be) in the repository. As someone else said - run autogen.sh to generate the relevent scripts. If we did put them into the repository then every time one of our developers ran autogen on his machine, it would result in a different set of scripts being generated - so virtually every check-in or commit would result in these files being unnecessarily updated. End users who don't understand this kind of subtlety are encouraged to use a released tarball which DOES include all of those scripts. ---------------------------- 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: Frederic B. <fre...@fr...> - 2005-05-17 19:30:50
|
Kevin Walchko a =E9crit : > Hi, > > I downloaded plib from CVS and tried to compile it. Why doesn't the =20 > CVS have the necessary configure scripts and Make files to build the =20 > library? > Thanks. > > Kevin you should run ./autogen.sh in the source directory. -Fred |
From: Kevin W. <wa...@co...> - 2005-05-17 14:26:55
|
Hi, I downloaded plib from CVS and tried to compile it. Why doesn't the CVS have the necessary configure scripts and Make files to build the library? Thanks. Kevin |
From: Kevin W. <wa...@co...> - 2005-05-17 14:22:48
|
Okay, I have looked around on the internet and it seems to be more of a gcc problem than a Mac OS X problem. For some reason, the compiler is trying to process the file (ul.h) as an extern "C" file rather than a c++ file. I can't seem to make XCode stop doing this. On May 15, 2005, at 8:49 PM, Kevin Walchko wrote: > Hi, > > This is an OS X 10.4 problem, but was hoping someone has figured > out how to fix it. When I try to compile code that is linked to > ul.h, I get the following errors: > > Native Build of Target "test" using Build Style "Development" > > CompileC /gcc/test.build/test.build/Objects-normal/ppc/main.o > main.cpp normal ppc c++ com.apple.compilers.gcc.3_3 > cd /Users/kevin/other_3d_libs/plib_examples-1.8.4/src/sg/test > setenv MACOSX_DEPLOYMENT_TARGET 10.4 > /usr/bin/gcc-3.3 -x c++ -arch ppc -pipe -Wno-trigraphs -fpascal- > strings -fasm-blocks -g -O0 -Wreturn-type -Wunused-variable - > fmessage-length=0 -ffix-and-continue -mtune=G4 -Wp,-header-mapfile,/ > gcc/test.build/test.build/test.hmap -F/gcc -I/gcc/include -I/gcc/ > test.build/test.build/DerivedSources -c /Users/kevin/other_3d_libs/ > plib_examples-1.8.4/src/sg/test/main.cpp -o /gcc/test.build/ > test.build/Objects-normal/ppc/main.o > In file included from /usr/include/plib/sg.h:29, > from /Users/kevin/other_3d_libs/ > plib_examples-1.8.4/src/sg/test/main.cpp:45: > /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 `float*' 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 > /usr/include/plib/ul.h: In function `void ulEndianSwap(short int*)': > /usr/include/plib/ul.h:351: error: declaration of C function `void > ulEndianSwap(short int*)' conflicts with > /usr/include/plib/ul.h:350: error: previous declaration `void > ulEndianSwap(int*)' here > /usr/include/plib/ul.h: In function `unsigned int ulEndianLittle32 > (unsigned int)': > > For some retarded reason XCode 2.0 wants to treat the header like a > C file and not C++. Has anyone figured out how to fix this? > Thanks. > > Kevin > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click > _______________________________________________ > plib-users mailing list > pli...@li... > https://lists.sourceforge.net/lists/listinfo/plib-users > |
From: Kevin W. <wa...@co...> - 2005-05-16 02:50:09
|
Hi, This is an OS X 10.4 problem, but was hoping someone has figured out how to fix it. When I try to compile code that is linked to ul.h, I get the following errors: Native Build of Target "test" using Build Style "Development" CompileC /gcc/test.build/test.build/Objects-normal/ppc/main.o main.cpp normal ppc c++ com.apple.compilers.gcc.3_3 cd /Users/kevin/other_3d_libs/plib_examples-1.8.4/src/sg/test setenv MACOSX_DEPLOYMENT_TARGET 10.4 /usr/bin/gcc-3.3 -x c++ -arch ppc -pipe -Wno-trigraphs -fpascal- strings -fasm-blocks -g -O0 -Wreturn-type -Wunused-variable -fmessage- length=0 -ffix-and-continue -mtune=G4 -Wp,-header-mapfile,/gcc/ test.build/test.build/test.hmap -F/gcc -I/gcc/include -I/gcc/ test.build/test.build/DerivedSources -c /Users/kevin/other_3d_libs/ plib_examples-1.8.4/src/sg/test/main.cpp -o /gcc/test.build/ test.build/Objects-normal/ppc/main.o In file included from /usr/include/plib/sg.h:29, from /Users/kevin/other_3d_libs/plib_examples-1.8.4/ src/sg/test/main.cpp:45: /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 `float*' 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 /usr/include/plib/ul.h: In function `void ulEndianSwap(short int*)': /usr/include/plib/ul.h:351: error: declaration of C function `void ulEndianSwap(short int*)' conflicts with /usr/include/plib/ul.h:350: error: previous declaration `void ulEndianSwap(int*)' here /usr/include/plib/ul.h: In function `unsigned int ulEndianLittle32 (unsigned int)': For some retarded reason XCode 2.0 wants to treat the header like a C file and not C++. Has anyone figured out how to fix this? Thanks. Kevin |
From: Steve B. <sjb...@ai...> - 2005-04-28 16:41:40
|
Jos Elkink wrote: >>I suggest you download the PLIB examples package and check out how >>the 'net' sample programs are put together. > > > I did, actually, but I can't find the difference. Besides, even if I > made serious mistakes in the coding, it should still link, shouldn't > it? Right now it doesn't recognize the 'netSocket', 'netInit', etc. > references, so there is a problem other than coding errors, isn't > there? Not necessarily...you might have included some ancient version of the PLIB header files...you might have done something ugly like: // Didn't feel like including the real headers // #include <plib/net.h> extern bool netInit ( float totally_the_wrong_parameter_type ) ; .... int main () { bool x = netInit ( 3.14159 ) ; ... } ...there are all sorts of possibilities for the 'creative' programmer! ---------------------------- 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: Frederic B. <fre...@fr...> - 2005-04-28 14:38:53
|
Because it solves unresolved symbols introduced by an argument by looking sequentially in the remainder of the command line, instead of rewinding t= he command line ? -Fred Quoting Jos Elkink: > Thank you - that solves it! :) I can't say I understand why, but I'm > happy enough ... > > Jos > > On 4/28/05, Frederic Bouvier <fre...@fr...> wrote: > > the linker may be sensible to parameter order. Try : > > > > g++ application.o main.o server.o -o server -lplibnet -lplibul > > > > -Fred > > > > Quoting Jos Elkink: > > > > > Hi guys, > > > > > > I am trying to experiment with plibnet but can't manage to get it t= o > > > work. My code (which just binds to a port, nothing else yet) compil= es > > > fine, but I can't manage to get it linked. Here's the top part of m= y > > > output and command: > > > > > > [jos@u15178506 server]$ make > > > g++ -lplibnet -lplibul -o server application.o main.o server.o > > > server.o(.text+0x11): In function `CServer::CServer()': > > > /home/jos/ts/server/server.cpp:7: undefined reference to `netInit()= ' > > > server.o(.text+0x32):/home/jos/ts/server/server.cpp:9: undefined > > > reference to `netSocket::netSocket()' > > > server.o(.text+0x72):/home/jos/ts/server/server.cpp:11: undefined > > > reference to `netSocket::open(bool)' > > > (etc...) > > > > > > Thus, I already include plibnet and I do have a file called > > > /usr/lib/libplibnet.a, but I nevertheless get undefined references. > > > Any ideas? (My makefile is below) Thanks in advance! > > > > > > Jos > > > > > > EXECUTABLE =3D server > > > > > > CC =3D g++ > > > CFLAGS =3D -Wall -W -pedantic -ggdb > > > LFLAGS =3D -lplibnet -lplibul > > > DFLAGS =3D -A -R -p -u -t -c -Q > > > COMPILE =3D $(CC) $(CFLAGS) -c -g > > > SRCS :=3D $(wildcard *.cpp) > > > OBJS :=3D $(patsubst %.cpp,%.o,$(SRCS)) > > > > > > # Standard target: > > > > > > all: $(EXECUTABLE) > > > > > > # Main target: > > > > > > $(EXECUTABLE): $(OBJS) > > > $(CC) $(LFLAGS) -o $(EXECUTABLE) $(OBJS) > > > > > > # All .cpp files have to be compiled to .o files: > > > > > > %.o: %.cpp > > > $(COMPILE) -o $@ $< > > > > > > clean: > > > -rm $(OBJS) $(EXECUTABLE) *~ autodoc.* |
From: Jos E. <je...@gm...> - 2005-04-28 14:28:04
|
Thank you - that solves it! :) I can't say I understand why, but I'm happy enough ... Jos On 4/28/05, Frederic Bouvier <fre...@fr...> wrote: > the linker may be sensible to parameter order. Try : >=20 > g++ application.o main.o server.o -o server -lplibnet -lplibul >=20 > -Fred >=20 > Quoting Jos Elkink: >=20 > > Hi guys, > > > > I am trying to experiment with plibnet but can't manage to get it to > > work. My code (which just binds to a port, nothing else yet) compiles > > fine, but I can't manage to get it linked. Here's the top part of my > > output and command: > > > > [jos@u15178506 server]$ make > > g++ -lplibnet -lplibul -o server application.o main.o server.o > > server.o(.text+0x11): In function `CServer::CServer()': > > /home/jos/ts/server/server.cpp:7: undefined reference to `netInit()' > > server.o(.text+0x32):/home/jos/ts/server/server.cpp:9: undefined > > reference to `netSocket::netSocket()' > > server.o(.text+0x72):/home/jos/ts/server/server.cpp:11: undefined > > reference to `netSocket::open(bool)' > > (etc...) > > > > Thus, I already include plibnet and I do have a file called > > /usr/lib/libplibnet.a, but I nevertheless get undefined references. > > Any ideas? (My makefile is below) Thanks in advance! > > > > Jos > > > > EXECUTABLE =3D server > > > > CC =3D g++ > > CFLAGS =3D -Wall -W -pedantic -ggdb > > LFLAGS =3D -lplibnet -lplibul > > DFLAGS =3D -A -R -p -u -t -c -Q > > COMPILE =3D $(CC) $(CFLAGS) -c -g > > SRCS :=3D $(wildcard *.cpp) > > OBJS :=3D $(patsubst %.cpp,%.o,$(SRCS)) > > > > # Standard target: > > > > all: $(EXECUTABLE) > > > > # Main target: > > > > $(EXECUTABLE): $(OBJS) > > $(CC) $(LFLAGS) -o $(EXECUTABLE) $(OBJS) > > > > # All .cpp files have to be compiled to .o files: > > > > %.o: %.cpp > > $(COMPILE) -o $@ $< > > > > clean: > > -rm $(OBJS) $(EXECUTABLE) *~ autodoc.* > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by: Tell us your software development plans! > > Take this survey and enter to win a one-year sub to SourceForge.net > > Plus IDC's 2005 look-ahead and a copy of this survey > > Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix > > _______________________________________________ > > plib-users mailing list > > pli...@li... > > https://lists.sourceforge.net/lists/listinfo/plib-users > > >=20 > ------------------------------------------------------- > SF.Net email is sponsored by: Tell us your software development plans! > Take this survey and enter to win a one-year sub to SourceForge.net > Plus IDC's 2005 look-ahead and a copy of this survey > Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix > _______________________________________________ > plib-users mailing list > pli...@li... > https://lists.sourceforge.net/lists/listinfo/plib-users > |
From: Frederic B. <fre...@fr...> - 2005-04-28 08:14:00
|
the linker may be sensible to parameter order. Try : g++ application.o main.o server.o -o server -lplibnet -lplibul -Fred Quoting Jos Elkink: > Hi guys, > > I am trying to experiment with plibnet but can't manage to get it to > work. My code (which just binds to a port, nothing else yet) compiles > fine, but I can't manage to get it linked. Here's the top part of my > output and command: > > [jos@u15178506 server]$ make > g++ -lplibnet -lplibul -o server application.o main.o server.o > server.o(.text+0x11): In function `CServer::CServer()': > /home/jos/ts/server/server.cpp:7: undefined reference to `netInit()' > server.o(.text+0x32):/home/jos/ts/server/server.cpp:9: undefined > reference to `netSocket::netSocket()' > server.o(.text+0x72):/home/jos/ts/server/server.cpp:11: undefined > reference to `netSocket::open(bool)' > (etc...) > > Thus, I already include plibnet and I do have a file called > /usr/lib/libplibnet.a, but I nevertheless get undefined references. > Any ideas? (My makefile is below) Thanks in advance! > > Jos > > EXECUTABLE =3D server > > CC =3D g++ > CFLAGS =3D -Wall -W -pedantic -ggdb > LFLAGS =3D -lplibnet -lplibul > DFLAGS =3D -A -R -p -u -t -c -Q > COMPILE =3D $(CC) $(CFLAGS) -c -g > SRCS :=3D $(wildcard *.cpp) > OBJS :=3D $(patsubst %.cpp,%.o,$(SRCS)) > > # Standard target: > > all: $(EXECUTABLE) > > # Main target: > > $(EXECUTABLE): $(OBJS) > $(CC) $(LFLAGS) -o $(EXECUTABLE) $(OBJS) > > # All .cpp files have to be compiled to .o files: > > %.o: %.cpp > $(COMPILE) -o $@ $< > > clean: > -rm $(OBJS) $(EXECUTABLE) *~ autodoc.* > > > ------------------------------------------------------- > SF.Net email is sponsored by: Tell us your software development plans! > Take this survey and enter to win a one-year sub to SourceForge.net > Plus IDC's 2005 look-ahead and a copy of this survey > Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix > _______________________________________________ > plib-users mailing list > pli...@li... > https://lists.sourceforge.net/lists/listinfo/plib-users > |
From: Jos E. <je...@gm...> - 2005-04-28 06:45:05
|
> I suggest you download the PLIB examples package and check out how > the 'net' sample programs are put together. I did, actually, but I can't find the difference. Besides, even if I made serious mistakes in the coding, it should still link, shouldn't it? Right now it doesn't recognize the 'netSocket', 'netInit', etc. references, so there is a problem other than coding errors, isn't there? Jos |
From: Steve B. <sjb...@ai...> - 2005-04-28 03:29:40
|
Jos Elkink wrote: > Hi guys, > > I am trying to experiment with plibnet but can't manage to get it to > work. My code (which just binds to a port, nothing else yet) compiles > fine, but I can't manage to get it linked. I suggest you download the PLIB examples package and check out how the 'net' sample programs are put together. ---------------------------- 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: Jos E. <je...@gm...> - 2005-04-27 19:59:45
|
Hi guys, I am trying to experiment with plibnet but can't manage to get it to work. My code (which just binds to a port, nothing else yet) compiles fine, but I can't manage to get it linked. Here's the top part of my output and command: [jos@u15178506 server]$ make g++ -lplibnet -lplibul -o server application.o main.o server.o server.o(.text+0x11): In function `CServer::CServer()': /home/jos/ts/server/server.cpp:7: undefined reference to `netInit()' server.o(.text+0x32):/home/jos/ts/server/server.cpp:9: undefined reference to `netSocket::netSocket()' server.o(.text+0x72):/home/jos/ts/server/server.cpp:11: undefined reference to `netSocket::open(bool)' (etc...) Thus, I already include plibnet and I do have a file called /usr/lib/libplibnet.a, but I nevertheless get undefined references. Any ideas? (My makefile is below) Thanks in advance! Jos EXECUTABLE =3D server CC =3D g++ CFLAGS =3D -Wall -W -pedantic -ggdb LFLAGS =3D -lplibnet -lplibul DFLAGS =3D -A -R -p -u -t -c -Q COMPILE =3D $(CC) $(CFLAGS) -c -g SRCS :=3D $(wildcard *.cpp) OBJS :=3D $(patsubst %.cpp,%.o,$(SRCS)) # Standard target: all: $(EXECUTABLE) # Main target: $(EXECUTABLE): $(OBJS) $(CC) $(LFLAGS) -o $(EXECUTABLE) $(OBJS) # All .cpp files have to be compiled to .o files: %.o: %.cpp $(COMPILE) -o $@ $< clean: -rm $(OBJS) $(EXECUTABLE) *~ autodoc.* |
From: Cameron B. <ko...@da...> - 2005-04-22 15:16:05
|
re: docs (I got them from the cvs, but they arnt on the web site that i could find.) -- / `Rev Dr' cam at darkqueen.org Roleplaying, virtual goth \ < http://darkqueen.org Poly, *nix, Python, C/C++, genetics, ATM > \ [+61 3] 9809 1523[h] skeptic, Evil GM(tm). Sysadmin for hire / ---------- Random Quote ---------- Do Miami a favor. When you leave, take someone with you. |
From: Steve B. <sjb...@ai...> - 2005-04-22 15:15:15
|
Cameron Blackwood wrote: > http://plib.sourceforge.net/download.html > "Example programs and Documentation for PLIB-1.8.4 or later." > > but the tar file at that url: > http://plib.sourceforge.net/dist/plib_examples-1.8.4.tar.gz > > has an emtpy (/doc/ directory) and I cant find any other link > to the docs (for offline work). Hmmm - looks like the documents somehow got left out of the tarball. The documents directory is quite literally the stuff that's on the web site. So a 'wget' of the online documents will get you what you need. I'll look into why the release tools don't add the documents into the examples tarball. Sorry - and thanks for the head's up. ---------------------------- 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----- |