Hi Dirk,
>       Hi Patrick,
> 
> Patrick Hartling wrote:
>> On my PowerPC and Intel Macs, long and unsigned long are 32-bit types, and
>> int32_t is int and uint32_t is unsigned int. As such, they are *almost*
>> interchangeable. What this really boils down to is a subtle difference in
>> the name mangling:
>>
>> __ZN3OSG12osgSwapBytesImEET_S1_
>> __ZN3OSG12osgSwapBytesIjEET_S1_
>>
>> The first is unsigned long OSG::osgSwapBytes<unsigned long>(unsigned long);
>> the second is unsigned int OSG::osgSwapBytes<unsigned int>(unsigned int).
>> When trying to link libOSGSystem.dylib, __ZN3OSG12osgSwapBytesImEET_S1_ ends
>> up being an unresolved symbol, whereas there are no problems with
>> __ZN3OSG12osgSwapBytesIjEET_S1_.
> 
> In that case I don't really see an alternative to having both ui and ul 
> versions 
> of the swappers, and decide per platform which ones are needed. :(

I think it is the same problem on windows long and int are both 4 bytes 
long but different types :-(

Andreas

> Yours
> 
>       Dirk
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users
> 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to