[Top][All Lists]

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

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

From: Holger
Subject: Re: [Bug-gnubg] Problems linking with readline on Windows
Date: Fri, 20 Dec 2002 18:40:28 +0100

On Thu, 19 Dec 2002 18:22:39 -0500, Gary Wong <address@hidden> wrote:

>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_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.

I'm afraid I don't have that much experience, even more so with
declaration issues and shared libraries. So it seems that I'll have to
give up. Or do you have some more specific hints?



reply via email to

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