[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gcc and idl
In article 446B9B3D@gojira.berkeley.edu, Karl Young <karl@gojira.berkeley.edu> writes:
>Has anyone done this sucessfully (i.e. used IDL with gcc) and if
>so any suggestions, e.g. what flags to use for the compile and
>link steps ? Thanks for any tips,
18 sparc10> cat > quick.c
#include <stdio.h>
int quick(void){
printf("Quick here") ;
return 4 ;
}
^C
19 sparc10> gcc -shared -o quick.so quick.c
20 sparc10> idl
IDL. Version 4.0 (sunos sparc).
Copyright 1989-1995, Research Systems, Inc.
All rights reserved. Unauthorized reproduction prohibited.
IDL> print,call_external("quick.so","quick")
Quick here 4
IDL> exit
21 sparc10>
you mention c++. Have you remembered extern "C"{}.
---
- ;-} --- :-{ --- ;-} --- :-{ --- ;-} -
Warning! Your Operating System is out of date!
It can be replaced by a more memory intensive Operating System.
Please contact your System Vendor for details.
--- ;-} --- :-{ --- ;-} --- :-{ --- ;-}