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

Re: stdwin

>>>>> "Bruno" == Bruno Haible <haible@ilog.ilog.fr> writes:

    Bruno> Fabrice Popineau <popineau@ese-metz.fr> writes:
    >> I can't manage to generate an image with stdwin. Should this
    >> work straight away ?

    Bruno> It should, yes, using either of the flags
    Bruno> --with-module-stdwin and --with-stdwin.

    Bruno> The "gcc ..." command line should contain libstdwin.a as
    Bruno> well.

Sorry, I didn't cut the right line. I put the -lstdwin, but with no
result. In fact, I can't compile the Appls from stdwin. I end up with
errors like :

ln -s lib_x11+alfa.a libstdwin.a
gcc -O6 -m486 -fomit-frame-pointer -I/usr/X11R6/include -IAppls/dpv -IH -c Appls/dpv/choose.c -o Appls/dpv/choose.o
gcc  Appls/dpv/choose.o  -L. -lstdwin -L/usr/X11R6/lib -lX11 -ltermcap  -o choose
Appls/dpv/choose.o: In function `parse':
choose.c(.text+0x22f): undefined reference to `x11_wcharwidth'
choose.c(.text+0x2a8): undefined reference to `x11_wcharwidth'
choose.c(.text+0x2c6): undefined reference to `x11_wlineheight'
choose.c(.text+0x316): undefined reference to `x11_wlineheight'
choose.c(.text+0x33c): undefined reference to `x11_wtextwidth'
choose.c(.text+0x393): undefined reference to `x11_wdrawline'
choose.c(.text+0x3df): undefined reference to `x11_wdrawline'
choose.c(.text+0x4cc): undefined reference to `x11_wcharwidth'
choose.c(.text+0x4e4): undefined reference to `x11_wdrawchar'

lib_x11+alfa.s contains lots of undefined symbols :

> nm lib_x11+alfa.a | egrep '^[ ]*U' 
         U x11_wbegindrawing
         U x11_wenddrawing
         U x11_winvert
         U x11_wlineheight
         U _w_bgcolor
         U _w_fgcolor
         U _w_get_last_active
         U _w_ll_event
         U _wcreate1
         U _wd
         U alfa_wbegindrawing
         U alfa_wchange
         U alfa_wcharwidth
         U alfa_wclose

I don't think it is the right thing. I'm using Linux 1.3.20, gcc-2.7.0
and a completely ELF system.

#include <std/disclaim.h>
e-mail:     popineau@ese-metz.fr  surface-mail:  Ecole Superieure d'Electricite
 	                     	                 2 rue Edouard Belin
voice-mail: (+33) 87-74-99-38                    F-57078 Metz Cedex 3