HEllo
I am new to Tru64 UNIX, and I have errors in the linkage stage.
I try to execuate this small program
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
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
Received on Wed Jul 14 1999 - 11:44:52 NZST