Home »
Public Forums »
archive »
Using GNU gcc to compile for CALL_EXTERNAL
Using GNU gcc to compile for CALL_EXTERNAL [message #5538] |
Sat, 13 January 1996 00:00 |
David S. Foster/Admin
Messages: 14 Registered: May 1995
|
Junior Member |
|
|
We use CALL_EXTERNAL quite a bit to call modules coded in c.
Previously, we've used Sun's SPARCompiler to compile the
routines. We are using Solaris 2.3 (soon to be 2.5). My
question is, has anyone already worked out the compile/link
options to use with the GNU gcc compiler? Also, any success
(or failure) stories?
Here are example compilation commands, in case it's useful:
cc -c -G -Kpic image_proc_idl.c
cc -c -G -Kpic array_utils.c -lsunmath -lm
cc -G -o image_proc_idl.so image_proc_idl.o array_utils.o \
-lsunmath -lm
Dave Foster
UCSD Brain Image Analysis Lab
foster@bial6.ucsd.edu
|
|
|
Current Time: Thu Oct 09 21:22:09 PDT 2025
Total time taken to generate the page: 0.40168 seconds