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

Home » Public Forums » archive » Re: Strange bug in IDL or AIX
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Strange bug in IDL or AIX [message #222] Thu, 06 February 1992 08:38
marc is currently offline  marc
Messages: 6
Registered: February 1992
Junior Member
Sorry, that should be:

cc -c example.c
cc -e example -o example example.o

since -lc is implied by using cc.
--


Marc Auslander (IBM)<marc@marc.watson.ibm.com> 914 784-6699
(Internet)<marc@watson.ibm.com>
Re: Strange bug in IDL or AIX [message #223 is a reply to message #222] Thu, 06 February 1992 08:37 Go to previous message
marc is currently offline  marc
Messages: 6
Registered: February 1992
Junior Member
In article <9202060924.AA16879@menora.weizmann.ac.il> dov@menora.weizmann.ac.il (Dov Grobgeld) writes:

...
> Compiling and linking the program with the one statement:

> cc -O -e bug -o bug bug.c -lm

> removes the problem and IDL's complaints. This should be changed in the
> IDL documentation "Using CALL_EXTERNAL and LINKIMAGE on the IBM Risc
> System 6000".

> < example : example.c
> < cc -c example.c
> < ld -e example -o example example.o -lc

>> example : example.c
>> cc -e example -o example example.c

I would think that
cc -c example.c
cc -e example -o example example.o -lc

would work just as well. It's not doing it in one step that matters,
but rather that cc provides the correct default options to ld.
--


Marc Auslander (IBM)<marc@marc.watson.ibm.com> 914 784-6699
(Internet)<marc@watson.ibm.com>
Re: Strange bug in IDL or AIX [message #225 is a reply to message #223] Thu, 06 February 1992 03:24 Go to previous message
dov is currently offline  dov
Messages: 4
Registered: February 1992
Junior Member
In my message Mon, 3 Feb 02 12:10:14 WET I said:
>
> I have encountered a very strange bug. I don't know if it belongs
> to IDL or AIX. It occurs when I use call_external from IDL.
>
[Stuff deleted]
>
> I compile and link the c program with the sequence of commands
>
> cc -O -c bug.c
> ld -e bug -o bug bug.o -lm -lc
>
[Stuff deleted]

The mystery is solved, thanks to Thomas Braunbeck, AS Software Service
AIX, Germany.

Compiling and linking the program with the one statement:

cc -O -e bug -o bug bug.c -lm

removes the problem and IDL's complaints. This should be changed in the
IDL documentation "Using CALL_EXTERNAL and LINKIMAGE on the IBM Risc
System 6000".

< example : example.c
< cc -c example.c
< ld -e example -o example example.o -lc

> example : example.c
> cc -e example -o example example.c

--
___ ___
/ o \ o \
Dov Grobgeld ( o o ) o |
The Weizmann Institute of Science, Israel \ o /o o /
"Where the tree of wisdom carries oranges" | | | |
_| |_ _| |_
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: What is IDL.
Next Topic: IMSL/IDL ???

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

Current Time: Wed Oct 08 19:15:58 PDT 2025

Total time taken to generate the page: 0.00687 seconds