This is the mail archive of the
mailing list for the GCC project.
Re: static links
- From: Ian Lance Taylor <iant at google dot com>
- To: DHConsultancy at skynet dot be
- Cc: gcc-help at gcc dot gnu dot org
- Date: 28 Nov 2007 10:26:20 -0800
- Subject: Re: static links
- References: <474D58AB.email@example.com>
DHConsultancy <DHConsultancy@skynet.be> writes:
> I'm trying to build a Fortran application using gfortran. I need both
> a dll, and a static library. I managed to create both, my question now
> is how to build a static gfortran application linking in the .dll or
> .a. If I link in .dll or .a, I get the error that .dll cannot be found.
> Is there a way to build a "stand-alone" application, i.e. in which the
> .dll is statically linked and the application doesn't need to
> reference it at runtime?
At the risk of stating the obvious: have you tried the -static option?