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: Gary Wong
Subject: Re: [Bug-gnubg] Problems linking with readline on Windows
Date: Thu, 19 Dec 2002 18:22:39 -0500
User-agent: Mutt/1.3.28i

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.

Cheers,
Gary.
-- 
   Gary Wong           address@hidden           http://www.cs.arizona.edu/~gary/



reply via email to

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