bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Bug-gnubg] Problems linking with readline on Windows


From: Øystein Johansen
Subject: RE: [Bug-gnubg] Problems linking with readline on Windows
Date: Fri, 20 Dec 2002 02:05:34 +0100

>===== Original Message From Gary Wong <address@hidden> =====
>On Thu, Dec 19, 2002 at 11:20:57PM +0100, Holger wrote:
>> I tried to compile with readline under Windows. I have
>> readline-4.2-20010727 and
>> #define HAVE_LIBREADLINE 1
>> #define HAVE_STRING_H 1
>> in config.h.
>>
>> Everything compiles well, but I get the following linking errors:
>
>I seem to remember reports of problems in the past with variables in
>shared libraries under MS Windows.  (Something like the MS Windows
>linker/loader not automatically relocating symbols, so the compiler
>has to jump through hoops at runtime to get to the variables.  Most
>other systems use position-independent code to solve these issues.)
>
>I think you can give some sort of declaration to Cygwin's gcc to
>get it to do the lookups where necessary -- the syntax is something
>like "__declspec(dllimport)".  Perhaps you can hunt around the
>header files for shared libraries that do work (e.g. GTK) to see
>what they do, and copy that, or just give up and link readline statically.

Yes, I remember I had the same problem. I think we have discussed this before,
Gary, I thought we (I guess you) made a workaround. This must have been at
least two years ago, and I don't remember exactly what was done in the
workaround. I also think we had the same problem with guile? Maybe there was a
workaround for guile, but not a workaround for readline. What I do remember is
that linking statically worked fine, but I had to recompile readline to do
that.

-Øystein





reply via email to

[Prev in Thread] Current Thread [Next in Thread]