Calling IDL from C [message #45810] |
Fri, 14 October 2005 02:58 |
raval.chintan
Messages: 54 Registered: May 2005
|
Member |
|
|
Dear All,
I want to call the IDL function from the C. I am using RedHat Linux 9.0
and IDL 6.2. I was trying to run the example program Calltest.c
provided along with the IDL distribution CD, but was not able to run
the program. The details of the error and the command to compile the
Calltest.c on linux are given below.
make IDLDIR=$IDL_DIR calltest
gcc -I/usr/local/rsi/idl_6.2/external/include -o calltest
/usr/local/rsi/idl_6.2/external/callable/calltest.c
-L/usr/local/rsi/idl_6.2/bin/bin.linux.x86 -lidl -Wl,-rpath,.
-Wl,-rpath
/usr/local/rsi/idl_6.2/bin/bin.linux.x86 /usr/X11R6/lib/libXm.so.3 -lXp
-L/usr/X11R6/lib -lXpm -lXext -lXt -lSM -lICE -lX11 -ldl -ltermcap -lrt
-lm -lpthread
The error issued is :
/usr/bin/ld: cannot find -lXp
collect2: ld returned 1 exit status
make: *** [calltest] Error 1
I would be grateful if some one can point out where am i going wrong
and point me in the right direction for compiling and running the
example code.
With regards
Chintan Raval
|
|
|