From: "Ron Grunwald" 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: 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!"