From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079058315859.tru64-unix-managers.marc@archive.invalid> From: Juan Enriquez Date: Wed, 14 Jul 1999 11:42:05 +0000 To: tru64-unix-managers Subject: ld inquiry!! X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079058315859 HEllo I am new to Tru64 UNIX, and I have errors in the linkage stage. I try to execuate this small program #include #include #include main(void) { double n; printf("INICIO\n"); n=3.0; printf("n=%f\n",sin(n)); printf("FIN \n"); return(0); } This is just a test program in the real program I call FORTRAN 90 subroutines from C functions, and my main program is a C program. The compilation process is ok (cc -c main2.c ), but during the linking process (ld main2.o -lm -o main) I obtain a strange error. "$ ld main2.o -lm -o main ld: Error: Undefined: printf sigsetjmp tis_errno_set_value __multithreaded __ieee_get_fp_control __ieee_set_fp_control __exc_lookup_function_entry __exc_virtual_unwind _OtsAddX" Please , could you tell me what I am missing in the linkage stage. best regards, Juan Enriquez Paraled