[Issue 1508] dmd/linux template symbol issues

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Oct 6 17:29:26 PDT 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1508


moritzwarning at web.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |moritzwarning at web.de




------- Comment #5 from moritzwarning at web.de  2007-10-06 19:29 -------
I can confirm the problem, too.
(I used Tango, but that shouldn't matter)
When I link in this order "main.o a.o b.o c.o" - it works.

Debian unstable, (kernel 2.6.18-5-486)

$gcc --version | head 1
gcc (GCC) 4.1.3 20070831 (prerelease) (Debian 4.1.2-16)

$ dmd | head 1
Digital Mars D Compiler v1.022

$for x in a b c main; do dmd -c $x -I/opt/dmd/import ; done
$gcc main.o b.o a.o c.o -o main -m32 -Xlinker -L/opt/dmd/lib -lphobos -lpthread
-lm
`.gnu.linkonce.t_D1c8__T1CTaZ1C3fooMFZv' referenced in section `.data' of a.o:
defined in discarded section `.gnu.linkonce.t_D1c8__T1CTaZ1C3fooMFZv' of a.o


-- 



More information about the Digitalmars-d-bugs mailing list