www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1240] New: linker complains about undefined references when using AAs

reply d-bugmail puremagic.com writes:

           Summary: linker complains about undefined references when using
           Product: D
           Version: 1.014
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: manuelk89 gmx.net

When using AA-literals gcc complains about undefined references to

-- file: aaliteral.d ---------------

void main()
        int[int] aa;
        aa = [4:3, 7:2];


compile session:

$ dmd aaliteral.d
gcc aaliteral.o -o aaliteral -m32 -Xlinker
-L/home/manuel/dev/compiler/digitalmars/dmd/bin/../lib -lphobos -lpthread -lm 
aaliteral.o: In function `_Dmain':
aaliteral.d:(.gnu.linkonce.t_Dmain+0x14): undefined reference to
collect2: ld returned 1 exit status
--- errorlevel 1

May 18 2007
parent d-bugmail puremagic.com writes:

thomas-dloop kuehne.cn changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

------- Comment #1 from thomas-dloop kuehne.cn  2007-05-20 13:11 -------
Your are using DMD-1.014 but your libphobos.a file is from version 1.012 or 

May 20 2007