duplicate symbol linker errors, my fault or D's?

Zach the Mystic reachMINUSTHISzachgmail at dot.com
Mon Mar 5 20:26:34 PST 2012


> Libraries are not intented for incremental compilation. They 
> are for
> distributing code in a unit which can be used by programs. And 
> in the case of
> a shared library, it gives the added benefit of reducing the 
> amount of
> duplicate code you get in binaries (saving both memory and disk 
> space).
>
> If you want to do incremental compilation, then use -c to 
> generate object files
> that you link together when you create the actual executable.
>
> - Jonathan M Davis

Thanks for taking the time to answer. I simply didn't realize 
that you could pack like 60 modules in to one ".o" object file. 
But I do now!



More information about the Digitalmars-d-learn mailing list