os-byte and UnixLib

Tony van der Hoff tony at mk-net.demon.co.uk
Fri Feb 16 09:56:20 GMT 2001


In message <6fc0664d4a%uk586013 at uk586013.rwth-aachen.de>
          Uwe Kall <uk586013 at rwth-aachen.de> wrote:

> 
> I have a problem using 'os_byte' with newest gcc and unixlib, everything
> compiles, but the linker complains that the symbol is declared double when
> it reaches the definition in unixlib.
> 
> I must admit that i did some 'small' changes to unixlib in order to get
> it run with oslib and swis in c++ while using stl, so does this work
> anywhere else and what did you do?
> 

I've been using GCC 2.95.1 PV2 with the version of UnixLib that accompanied
it, together with OSLib, for some time now, without problems. I can't
remember specifically calling os_byte, however. What changes have you needed
to make to your library? 

What do you mean by "the newest version"? I've not seen any announcement of a
new release.

This rather begs the question of what UnixLib thinks it's doing trampling on
OSLib's namespace (if that's what's happening). If they've enhanced UnixLib
to implement OS calls, then presumably you don't need OSLib as well.
More likely they've implemented a few os calls to support their own
use, and used the same name as OSLib; this would be unforgivably foolish
IMHO. Perhaps you need to check out the documentation with your release. 

My feeling is that this is a matter for the GCC/UnixLib M/L, and I suggest
you post your submission there as a query/bug report. I'll look forward to
seeing the response :-)

-- 
Tony van der Hoff         | MailTo:tony at mk-net.demon.co.uk
                          | MailTo:avanderhoff at iee.org
Buckinghamshire, England  | http:mk-net.demon.co.uk



More information about the oslib-user mailing list