diaz@eniac.seas.upenn.edu (Carmen M. Diaz) (11/26/90)
I've got a problem with ceil. the error I get is: ================================================================ cd /home/students/d/diaz/cse380/assn2/BAD/ gcc -lm -g sim.c sim.c:130: Undefined symbol _ceil referenced from text segment Compilation exited abnormally with code 1 at Sun Nov 25 17:23:56 ================================================================ but I do have the following line in my code (at the beginning of the file): #include <math.h> Does anyone have any suggestions? Carmen (diaz@eniac.seas.upenn.edu)
ok@goanna.cs.rmit.oz.au (Richard A. O'Keefe) (11/26/90)
In article <33390@netnews.upenn.edu>, diaz@eniac.seas.upenn.edu (Carmen M. Diaz) writes: > gcc -lm -g sim.c > sim.c:130: Undefined symbol _ceil referenced from text segment > Does anyone have any suggestions? (1) Read the ld(1) manual page. (2) gcc {compiler options} {C source files} {library files}, e.g. gcc -g sim.c -lm -- I am not now and never have been a member of Mensa. -- Ariadne.