Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!julius.cs.uiuc.edu!ux1.cso.uiuc.edu!sudha From: sudha@cs.uiuc.edu (Sudhakar Yerramareddy) Newsgroups: comp.unix.ultrix Subject: cc, ld -- math libraries on RISC ULTRIX Keywords: math-libraries cc ld f77 Message-ID: <1990Dec9.210422.16744@ux1.cso.uiuc.edu> Date: 9 Dec 90 21:04:22 GMT Sender: news@ux1.cso.uiuc.edu (News) Organization: University of Illinois at Urbana Lines: 24 I am trying to call a fortran subroutine from a C program. I tried this on the DS3100 and DS5000 running ULTRIX 4.0. When I link the programs together, I get the following error message. I tried several libraries but in vain. Can someone, please, tell me what I am doing wrong, in other words, what I ought to do. Here is what I did: f77 -c desp56.f cc eeg-new.c desp56.o -lI77 -lF77 -lm >>ld: >>Undefined: >>sinf >>sqrtf >>cosf >>expf >>logf I tried altering the order of the libraries. I also tried a lot of illogical things (I just wanted to exhaust all possible alternatives!). Thanks. -- sudhakar