Re: f2c
* mercoledì 05 dicembre 2001, alle 17:56, Stefano Simonucci,,, scrive:
> $ gcc -lf2c -lm prova.c
> /tmp/ccrz8q1S.o: In function `MAIN__':
> /tmp/ccrz8q1S.o(.text+0x15): undefined reference to `s_copy'
> /tmp/ccrz8q1S.o(.text+0x25): undefined reference to `s_wsle'
> /tmp/ccrz8q1S.o(.text+0x3e): undefined reference to `do_lio'
> /tmp/ccrz8q1S.o(.text+0x46): undefined reference to `e_wsle'
> /tmp/ccrz8q1S.o(.text+0x55): undefined reference to `s_stop'
>
> Solo che non so in che librerie andare a pescare queste "functions."
> Dall' help ho capito che -lf2c -lm dovrebbe prendere tutte le librerie
> che sono richieste ma
> non sembra essere cosi'. Qualcuno sa quali librerie "linkare"?
> Grazie
> Ciao
prova a mettere le librerie in fondo:
$ gcc prova.c -lf2c -lm
se fai:
$ nm -D /usr/lib/libf2c.so.2 | grep s_copy
ottieni:
00006d40 T s_copy
il numero potrebbe cambiare, ma visto che il simbolo del tipo e' 'T'
la funzione si trova in questa libreria (man 1 nm).
--
Mario Ambrogetti mailto:mario@assi.polito.it
Torino Italy http://www.polito.it/~s65710
Reply to:
- Follow-Ups:
- Re: f2c
- From: "Stefano Simonucci,,," <stefano.simonucci@tin.it>
- References:
- f2c
- From: "Stefano Simonucci,,," <stefano.simonucci@tin.it>