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 21:30:07 +0100

>===== Original Message From address@hidden =====
>
>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?

Try something like this:

1. Get the source code of readline from your nearest gnu mirror.

2. configure the source. Check if there is some configure options like
--shared and --static ?

3. compile

4. keep the objects. ( *.o )

5. make a new library archive

   ar q libreadline.a *.o

6. run ranlib on that that archive.

   ranlib libreadline.a

7. put this file (libreadline.a) into your gnubg build directory

8. modify your gnubg Makefile so the linking line includes -L. before all the
other paths to link libraries.

Hopefully this will link your readline statically to your gnubg. After a build
linke this I think you should remember to strip gnubg.exe after building.

strip gnubg.exe

(I think this was about what I did I those days.... )

Remember: I don't think you can combine GTK interface with readline though!
But yes, it will be very usefull for a gnubg-no-gui.exe.

-Øystein





reply via email to

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