* gfortran -static
[not found] <2477FD50BABED145A42B81A4A33D0B8C3AF796BC@ITDSRVMAIL011.utep.edu>
@ 2015-11-05 15:35 ` Sewell, Granville
2015-11-05 15:45 ` FX
0 siblings, 1 reply; 2+ messages in thread
From: Sewell, Granville @ 2015-11-05 15:35 UTC (permalink / raw)
To: fortran
When I try to compile/link in static mode:
gfortran -static program.f
I get:
/usr/bin/ld: cannot find -lm
/usr/bin/ld: cannot find -lc
I have my LD_LIBRARY_PATH set to the gcc46 libraries, and gfortran works fine in all other cases.
Any ideas?
Granville Sewell
UTEP Math. Dept
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: gfortran -static
2015-11-05 15:35 ` gfortran -static Sewell, Granville
@ 2015-11-05 15:45 ` FX
0 siblings, 0 replies; 2+ messages in thread
From: FX @ 2015-11-05 15:45 UTC (permalink / raw)
To: Sewell, Granville; +Cc: fortran
> gfortran -static program.f
> I get:
> /usr/bin/ld: cannot find -lm
> /usr/bin/ld: cannot find -lc
You’re missing the static version of the standard C library (libc and libm). You don’t tell us what OS you’re using, but if it’s linux then you need to install them. Maybe in a package called glibc-static or something like that?
FX
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-11-05 15:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <2477FD50BABED145A42B81A4A33D0B8C3AF796BC@ITDSRVMAIL011.utep.edu>
2015-11-05 15:35 ` gfortran -static Sewell, Granville
2015-11-05 15:45 ` FX
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).