Re: mixed compilation



alex.gman@xxxxxxxxx writes:

> Can you compile an application statically with respect to some
> libraries and dynamically with respect to others?

Sure. Do "man ld", look for -Bstatic and -Bdynamic.
Note that '-Bxxxx' means something else to gcc, be sure to use
-Wl,-Bstatic and -Wl,-Bdynamic.

> I can't find the required GCC options for that.

That's because they are 'ld' options, not gcc options.

> On another topic, can one use DLLs to build statically linked
> executables?

This has just been discussed:
http://groups.google.com/group/comp.os.linux.development.apps/browse_frm/thread/6966da48032bdc07

> Seems like there should be a way to lift the binary
> procedure code out of DLL and plug them into your executables, in
> theory. But how can this be done in practice?

In practice this doesn't work too well.

Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
.