Re: [Plib-users] Compiling issues on MacOS X 10.5
Brought to you by:
sjbaker
From: Fay J. F Dr C. U. 46 S. <joh...@eg...> - 2008-07-16 18:21:49
|
An "unsigned int" is always available ... if it is called "unsigned int". But Windows doesn't have "stdint.h", at least not in its default include path (I just tried it). Certainly it seems silly, but unfortunately thanks to Windows it is necessary. John F. Fay Technical Fellow Jacobs Technology TEAS Group 850-883-1294 -----Original Message----- From: pli...@li... [mailto:pli...@li...] On Behalf Of mat...@ma... Sent: Wednesday, July 16, 2008 1:02 PM To: PLIB Users Subject: Re: [Plib-users] Compiling issues on MacOS X 10.5 i am not that familiar with plib. having unsigned int type def'ed to uint if UL_WIN32 seems silly. an unsigned int is always availiable, i dont see how that is dependent on the userland. and if an exact int is need (32 bits, loose definition of int), then use stdint.h, that has been added to the standard and avaliable for years. #ifdef HAVE_STDINT_H // assuming autoconf #include <stdint.h> typedef uint32_t uint #endif matt On Wed, 16 Jul 2008, Fay John F Dr CTR USAF 46 SK wrote: > While that might make it work in the present case, it is most > emphatically NOT a good general fix. Most platforms do define "uint" > somewhere else, and taking out the "#ifdef" would break PLIB on those > platforms. A more general solution would be to find where MacOS X > 10.5.4 defines "uint" and include that definition. > > > Never tried this, but as you can see from the error the problem is it > doesn't know what a uint is. > > It's typedef'ed to unsigned int in the ssgLoadFLT source, but with an > ifdef UL_WIN32. > > Just take out the #ifdef will make it work for you. No idea if that's a > proper fix i.e. would work on every platform. > >> ssgLoadFLT.cxx: In function 'void _swab32(const void*, void*, int)': >> ssgLoadFLT.cxx:185: error: 'uint' was not declared in this scope >> ssgLoadFLT.cxx:185: error: 's' was not declared in this scope >> ssgLoadFLT.cxx:185: error: expected primary-expression before ')'token >> ssgLoadFLT.cxx:185: error: expected `;' before 'src' >> ssgLoadFLT.cxx:186: error: 'd' was not declared in this scope >> ssgLoadFLT.cxx:186: error: expected primary-expression before ')'token >> ssgLoadFLT.cxx:186: error: expected `;' before 'dst' >> ssgLoadFLT.cxx:188: error: expected `;' before 't' >> [...] >> >> It looks like - even if the ./configure didn't return me any error - >> I'm missing some dependencies. Anyway, I can't understand which one. >> Perhaps some of you has already experienced a similar issue trying to > >> compile PLIB on Mac and therefore you could provide me with some >> findings? >> >> I've also tried to write to Darrell Walisser, as suggested into the >> README.mac file included into the sources package, but the address >> published there looks to be not used anymore. ------------------------------------------------------------------------ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ plib-users mailing list pli...@li... https://lists.sourceforge.net/lists/listinfo/plib-users |