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

2012-03-07 Thread Zach the Mystic
On Tuesday, 6 March 2012 at 07:29:54 UTC, Jacob Carlborg wrote: Actually the -lib switch might be the answer to one of the incremental compilation problems DMD suffers from. That DMD usually does not output all symbols to all object files which can result in missing symbols when doing

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

2012-03-06 Thread Jacob Carlborg
On 2012-03-06 08:56, Jonathan M Davis wrote: On Tuesday, March 06, 2012 08:29:53 Jacob Carlborg wrote: On 2012-03-06 02:21, Jonathan M Davis wrote: On Tuesday, March 06, 2012 01:53:02 Zach the Mystic wrote: Reading the documentation about compiler options and flags here:

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

2012-03-06 Thread Jonathan M Davis
On Tuesday, March 06, 2012 11:31:40 Jacob Carlborg wrote: On 2012-03-06 08:56, Jonathan M Davis wrote: On Tuesday, March 06, 2012 08:29:53 Jacob Carlborg wrote: On 2012-03-06 02:21, Jonathan M Davis wrote: On Tuesday, March 06, 2012 01:53:02 Zach the Mystic wrote: Reading the

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

2012-03-06 Thread Jacob Carlborg
On 2012-03-07 01:47, Jonathan M Davis wrote: On Tuesday, March 06, 2012 11:31:40 Jacob Carlborg wrote: On 2012-03-06 08:56, Jonathan M Davis wrote: On Tuesday, March 06, 2012 08:29:53 Jacob Carlborg wrote: On 2012-03-06 02:21, Jonathan M Davis wrote: On Tuesday, March 06, 2012 01:53:02 Zach

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

2012-03-05 Thread Zach the Mystic
I'm not sure if the linker errors I'm getting are my fault or D's. I'm trying to do incremental compilation since the size of my program is starting to break my computer, slowing compilations down by four or five times. Suppose I have two libraries: lib1.a lib2.a I build lib1 with a bunch of

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

2012-03-05 Thread Zach the Mystic
Reading the documentation about compiler options and flags here: http://dlang.org/dmd-osx.html led me to believe that building libraries was the right way to do incremental compilation. But I thought, well, can I just build file1.o object files instead? So I've started doing that and I've

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

2012-03-05 Thread Jonathan M Davis
On Tuesday, March 06, 2012 01:53:02 Zach the Mystic wrote: Reading the documentation about compiler options and flags here: http://dlang.org/dmd-osx.html led me to believe that building libraries was the right way to do incremental compilation. But I thought, well, can I just build file1.o

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

2012-03-05 Thread Zach the Mystic
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

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

2012-03-05 Thread Jonathan M Davis
On Tuesday, March 06, 2012 05:26:34 Zach the Mystic wrote: 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

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

2012-03-05 Thread Jacob Carlborg
On 2012-03-06 02:21, Jonathan M Davis wrote: On Tuesday, March 06, 2012 01:53:02 Zach the Mystic wrote: Reading the documentation about compiler options and flags here: http://dlang.org/dmd-osx.html led me to believe that building libraries was the right way to do incremental compilation. But

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

2012-03-05 Thread Jacob Carlborg
On 2012-03-06 01:04, Zach the Mystic wrote: I'm not sure if the linker errors I'm getting are my fault or D's. I'm trying to do incremental compilation since the size of my program is starting to break my computer, slowing compilations down by four or five times. I just want to give you a

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

2012-03-05 Thread Jonathan M Davis
On Tuesday, March 06, 2012 08:29:53 Jacob Carlborg wrote: On 2012-03-06 02:21, Jonathan M Davis wrote: On Tuesday, March 06, 2012 01:53:02 Zach the Mystic wrote: Reading the documentation about compiler options and flags here: http://dlang.org/dmd-osx.html led me to believe that