comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: gcc and idl
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: gcc and idl [message #7373 is a reply to message #7366] Thu, 07 November 1996 00:00 Go to previous messageGo to previous message
jlaw is currently offline  jlaw
Messages: 11
Registered: November 1995
Junior Member
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.
--- ;-} --- :-{ --- ;-} --- :-{ --- ;-}
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Viewing unsigned int images (was: 16 bit / 8 bit depth colors on the mac)
Next Topic: Is there a replacement for STEPWISE in 4.0x?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 06:55:12 PDT 2025

Total time taken to generate the page: 0.24160 seconds