Linking OSLib Support
Tony van der Hoff
OSLib at mk-net.demon.co.uk
Wed Dec 27 10:36:31 GMT 2000
On Tue, 26 Dec 2000, at 22:43:49, John Tytgat <John.Tytgat at aaug.net>
wrote on the subject "Linking OSLib Support":
>In message <9EzGpBAJvGR6EweS at mk-net.demon.co.uk>
> Tony van der Hoff <OSLib at mk-net.demon.co.uk> wrote:
>
>> On Fri, 22 Dec 2000, at 12:57:57, Dr. Simon J. Melhuish
>> <simon at melhuish.net> wrote on the subject "Linking OSLib Support":
>>
>>
>> I've just come across that problem myself in the last week. It turns out
>> that __SIG_ERR (and others) is not defined in UnixLib. The OSLibSupport
>> library was built using the CLib definitions.
>>
>> A second problem is the X module (which requires these signals) is
>> called from the Event module in OSLibsupport, so you can't get round the
>> first problem by avoiding X. It also breaks GNU C++
>>
>> If you use CLib instead of Unixlib, the problem goes away. However,
>> I have here an experimental OSLibSupport, which conditionally #defines
>> the signals, and removes the dependence of Event on X. I'm still testing
>> it, and it is still subject to change, but it is available for download
>> from HTTP://www.mk-net.demon.co.uk/oslib/620/beta/oslibsupport.zip
>
>The OSLibSupport binary can only be used by either CLib or either by
>UnixLib depending how it was compiled. UnixLib and CLib and not
>binary compatible. If you want to use UnixLib with OSLibSupport, you
>have to recompile OSLibSupport library with the UnixLib headers.
>
Not entirely correct, I'm afraid, John.
As I said above (did you read it? :-), there is a problem with signal.h
in each of the libraries being incompatible, which is why the X module
presently fails to link. I believe I can fix that. For now I have just
removed the dependency between it and the Event module. AFAIK, every
other module links correctly.
I am presently using the (621 beta) OSLibSupport binary (built with clib
headers) together with UNIXLib without any problems. As I understand it,
Simon's problem is now also resolved. There is no need to recompile,
providing X is not used.
--
Tony van der Hoff | mailto:OSLib at mk-net.demon.co.uk
Buckinghamshire, England | http://www.mk-net.demon.co.uk/oslib/
----------------------------------------------------------------
More information about the oslib-user
mailing list