ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/12/11/23:51:18

From: "Ron Grunwald" <RGRUNWAL AT wasp DOT cs DOT cowan DOT edu DOT au>
Organization: Edith Cowan University
To: djgpp AT sun DOT soe DOT clarkson DOT edu, gwong AT cse DOT unsw DOT edu DOT au (Geoffrey Wong)
Date: Tue, 12 Dec 1995 09:18:56 GMT+800
Subject: Re: <none>
Reply-To: r DOT grunwald AT cowan DOT edu DOT au

> Hi, I am wondering if anyone out there can help me.
> 
> I have a type defined as:-
> 
> double drand48();
> 
> Now as far as I know, this is perfectly Okay in Unix, and drand48()
> would take on some random floating point value.
> 
> But when I compile it under DOS using djgpp's gcc. It complains:-
> 
> c:\ilp\foil>make
> Ndmake:  warning -- VPATH directory `bin' unsearchable or empty.
> Ndmake:  warning -- VPATH directory `headers' unsearchable or empty.
> gcc -o foil6 @all.obj -lm
                   ^^^^
Are you using TASM-style object files here? If you are, they will
not link successfully. You will have to compile your source under GCC
and use its .O object file. 

> state.o: In function `OriginalState':
> state.c:126: undefined reference to `drand48'
> state.o: In function `RandomTuple':
> state.c:269: undefined reference to `drand48'
> 
> *** Error code 1
> 
> Is there a DOS equivalent to that, maybe I just need to call up the right
> library.
> 
> Does anyone know the answer?
> 
> Geoff
> 

 ********************************************************************
 | Author.............. Ron Grunwald                                | 
 | Internet............ r DOT grunwald AT cowan DOT edu DOT au                     |
 | Phone............... (09)273 8027 or (09)273 8468                |
 |------------------------------------------------------------------|
 | Department.......... Computer Operations and Systems Management  |
 | Division/Faculty.... Information Technology                      | 
 | Institute........... Edith Cowan University, Churchlands         | 
 | Location............ Perth, Western Australia                    |
 ********************************************************************
 "I don't have any solution but I certainly admire the problem!"


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019