4 msgFW: Gcc-4.2.2 compile failure
6 msgFW: Mixing C/C++ code
8 msglibstdc++.so conflict
5 msgconfused at code generation for a empty loop
3 msgNew Build Error On gcc-4.1.2
2 msgNew Build Error On gcc-3.4.6
2 msgAuto inlining with only -O2?
7 msg4.2 build problem on redhat x86_64
3 msgBasic Question on Building Multi-Threaded 'C' A...
3 msgProblems with using identifier long long int in...
27 msgRe: Missing warning about uninitialized variable.
2 msgMissing warning about uninitialized variable
1 msgDude, protects SSP's canary itself in va_lists?
2 msgMake Error In gcc-4.1.2
1 msgHang Error In gcc-4.0.4
2 msgMake Error In gcc-3.4.6
1 msg(kein Betreff)
2 msgC Preprocessor for 64-bit

static links
\ DHConsultancy (28 Nov 2007)
. \ Ian Lance Taylor (28 Nov 2007)

2 msgBuggish behaviour of nested unnamed struct in e...
Subject:Re: static links
Group:Gcc-help
From:Ian Lance Taylor
Date:28 Nov 2007


DHConsultancy <DHConsultancy> 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?

Ian


© 2004-2008 readlist.com