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

Home » Public Forums » archive » Re: calling C from IDL under OS X
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: calling C from IDL under OS X [message #33145] Mon, 09 December 2002 08:20 Go to previous message
Ed Wright is currently offline  Ed Wright
Messages: 39
Registered: February 1999
Member
in article bc31c488.0212070708.6eb2efbd@posting.google.com, Sascha Kempf at
Sascha.Kempf@mpi-hd.mpg.de wrote on 12/7/02 7:08 AM:

> Hi,
>
> does anybody know how to compile a DLM under OS X? I haven't found
> any hint how to setup the compiler/loader correctly in the RSI docs.
> There is no example Makefile for OS X in the idl/external folder. The
> standard Linux Makefile does not work.
>
> Thanks, Sascha.

I use,

#
# Compile, one for each .c file.
#
cc -fPIC -no-cpp-precomp -dynamic -fno-common \
-I/usr/local/rsi/idl_5.6/external \
-I..any other needed include paths \
-ansi -Wall -Wtraditional -Wundef \
-Wpointer-arith \
-Wcast-align -Wsign-compare \
-c -D_REENTRANT source_file.c \
-o source_file.o



#
# Link to the .so.
#

cc -bundle -flat_namespace -undefined suppress \
-o source_file.so source_file.o \
any_additional_objects.o \
any_additional_libs.a
[Message index]
 
Read Message
Read Message
Previous Topic: fast array comparison
Next Topic: Re: fast array comparison

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

Current Time: Wed Oct 08 15:52:12 PDT 2025

Total time taken to generate the page: 0.00356 seconds