| Re: callable IDL [message #44815 is a reply to message #5700] |
Wed, 20 July 2005 02:07  |
Nigel Wade
Messages: 286 Registered: March 1998
|
Senior Member |
|
|
jicicu wrote:
> Hi everybody,
>
> I am trying to create an executable with g++ in linux suse that starts
> and idl session. I don't know the link options for creating such
> executable. I tried:
>
> g++ -Wall -L../lib -L../CFIs/
> -L/usr/local/rsi/idl_6.0/bin/bin.linux.x86
> -L/usr/local/rsi/idl_6.0/bin/bin.linux.x86/lib -L/usr/X11/lib
> -L/usr/local/mysql/lib -o ./GOME2GPP ./Breakpoint.o ./MySQL_database.o
> ./call_idl.o ./callableIDLDriver.o -lmetop_orbit -lmetop_pointing
> -lmetop_lib -lm -lnsl -lstdc++ -lpthread -L../lib -lxerces-c -lc -lg2c
> -lidl -lX11 -lXp -lXpm -lXext -lXt -lSM -lICE -ldl -lrt -lpthread
> -lmysqlclient -lz
>
> and I get some messages like these:
> /usr/local/rsi/idl_6.0/bin/bin.linux.x86/libidl.so: undefined reference
> to `_XmGeoSetupKid'
> /usr/local/rsi/idl_6.0/bin/bin.linux.x86/libidl.so: undefined reference
> to `XmDragStart'
> /usr/local/rsi/idl_6.0/bin/bin.linux.x86/libidl.so: undefined reference
> to `mglRotatef'
> /usr/local/rsi/idl_6.0/bin/bin.linux.x86/libidl.so: undefined reference
> to `mglRasterPos2i'
> /usr/local/rsi/idl_6.0/bin/bin.linux.x86/libidl.so: undefined reference
> to `XmCreateOptionMenu'
> /usr/local/rsi/idl_6.0/bin/bin.linux.x86/libidl.so: undefined reference
> to `XmTextGetSelectionPosition'
> /usr/local/rsi/idl_6.0/bin/bin.linux.x86/libidl.so: undefined reference
> to `XmListDeselectPos'
>
> Does anyone know the right compilation options. Any help will be most
> welcomed.
>
> Many thanks in advance,
> Juan
I think you need the Motif libraries, in particular libXm.so. Read the
Makefile in bin/bin.linux.x86 for details.
--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
|
|
|
|