This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

srand48 in B20.



Hi, I'm having a problem with the first (!) program I've tried to compile
under cygwin - I'm hoping it's something simple that you'll all be able to
spot right away from this linker output?

I've had a hunt around in the include headers, and I can't seem to find one
that actually has srand48 or lrand48 in it... it should be in <stdlib.h>
shouldn't it?

--- begin linker errors ---

gcc -o 1BC error.o input_output.o gestion.o eval.o search.o write.o bayes.o 1BC.
o -lm
eval.o(.text+0x23):eval.c: undefined reference to `lrand48'
search.o(.text+0x42a8):search.c: undefined reference to `srand48'
collect2: ld returned 1 exit status
make: *** [1BC] Error 1

--- end linker errors ---

cheers,
ian

-- 
+------------------------------+----------------------------------------------+
| ian miller                   | My other MUA is a GNU.                       |
| ian@gingerspice.demon.co.uk  | http://www.gingerspice.demon.co.uk           |
+------------------------------+----------------------------------------------+

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]