std.boxer linker error

Brad Roberts braddr at puremagic.com
Sun Mar 5 14:57:16 PST 2006


On Sun, 5 Mar 2006, Thomas Kuehne wrote:

> Don Clugston schrieb am 2006-03-03:
> > Derek Parnell wrote:
> >> On Thu, 2 Mar 2006 17:38:00 -0800, Brad Roberts wrote:
> >> 
> >>> On linux with dmd 0.148, I'm seeing some odd linking issues that I haven't 
> >>> tracked down just yet.
> >> 
> >> On Windows, you have to compile anything that imports std.boxer with the
> >> "-release" switch to get the linker happy.
> >
> > Do we know the reason for that? 
> 
> DMD generates different symbols depending on the state of the "-release" switch.
> 
> > Has it been reduced to a minimal test case?
> 
> Not as far as I know.
> 
> Thomas

I tried a little bit to reduce the problem.  If you're looking for a 
single file contained test case then I'm not sure that's doable.  I 
suspect this might relate to the other threads going on right now about 
symbols changing visibility based on compiler options.

Random thought:  Now that dmd can produce .di files, THOSE are what should 
be used now rather than the full .d's during subsequent compilation.  I 
haven't checked their output, but I assume that the unused paths around 
version, debug, release, etc are omitted such that the .di file _exactly_ 
matches the .o/.obj files produced.

Later,
Brad



More information about the Digitalmars-d-bugs mailing list