Re: undefined reference to class template

2014-12-05 Thread Satoshi via Digitalmars-d-learn
I have defined LinkedList as di file, Im not compiling it. Im compiling every .d file separately, eg. main.d -> main.d.o without including anything else. I tried to use -femit-templates but nothing happnes. I dont have object file of LinkedList.di, Im only importing it in source file and with

Re: undefined reference to class template

2014-11-23 Thread Kapps via Digitalmars-d-learn
On Friday, 14 November 2014 at 23:29:34 UTC, Satoshi wrote: Hi, Im using GDC 4.9.0 compiler. I have template classes like "public class LinkedList(T) {...}" and when I try compile it together, everything works fine. But when I compile every source file to separate object file and link it togeth

Re: undefined reference to class template

2014-11-22 Thread Satoshi via Digitalmars-d-learn
On Monday, 17 November 2014 at 21:12:54 UTC, Steven Schveighoffer wrote: On 11/14/14 6:29 PM, Satoshi wrote: Hi, Im using GDC 4.9.0 compiler. I have template classes like "public class LinkedList(T) {...}" and when I try compile it together, everything works fine. But when I compile every sourc

Re: undefined reference to class template

2014-11-17 Thread Steven Schveighoffer via Digitalmars-d-learn
On 11/14/14 6:29 PM, Satoshi wrote: Hi, Im using GDC 4.9.0 compiler. I have template classes like "public class LinkedList(T) {...}" and when I try compile it together, everything works fine. But when I compile every source file to separate object file and link it together with ld Ill get errors

Re: undefined reference to class template

2014-11-17 Thread Satoshi via Digitalmars-d-learn
Could anyone help me please?

undefined reference to class template

2014-11-14 Thread Satoshi via Digitalmars-d-learn
Hi, Im using GDC 4.9.0 compiler. I have template classes like "public class LinkedList(T) {...}" and when I try compile it together, everything works fine. But when I compile every source file to separate object file and link it together with ld Ill get errors like: "/os/KernelLand/Kernel/Tas