Re: Undefined _D10TypeInfo_l6__initZ and _D15TypeInfo_Struct6__vtblZ added when instantiating template structs

2015-01-26 Thread Iain Buclaw via D.gnu
On 26 January 2015 at 17:50, Liran Zvibel via D.gnu wrote: > Hi, > > I would like to use some D code in a C binary > . > Part of the D functionality used is by instantiating templated structs. > > Even if I just try to compile the following simple code: > > extern (C) { > alias mytpye = BLA!(i

Re: Undefined _D10TypeInfo_l6__initZ and _D15TypeInfo_Struct6__vtblZ added when instantiating template structs

2015-01-26 Thread Mike via D.gnu
On Monday, 26 January 2015 at 17:50:59 UTC, Liran Zvibel wrote: With the following gcd flags: -fno-invariants -fno-in -fno-out -fno-bounds-check -O3 -fno-assert -c -nophoboslib -nostdlib I still have 3 undefined symbols: _D10TypeInfo_i6__initZ _D15TypeInfo_Struct6__vtblZ _Dmodule_ref If y

Re: Undefined _D10TypeInfo_l6__initZ and _D15TypeInfo_Struct6__vtblZ added when instantiating template structs

2015-01-26 Thread Laeeth Isharc via D.gnu
On Monday, 26 January 2015 at 17:50:59 UTC, Liran Zvibel wrote: Hi, I would like to use some D code in a C binary . Part of the D functionality used is by instantiating templated structs. Even if I just try to compile the following simple code: extern (C) { alias mytpye = BLA!(int);

Undefined _D10TypeInfo_l6__initZ and _D15TypeInfo_Struct6__vtblZ added when instantiating template structs

2015-01-26 Thread Liran Zvibel via D.gnu
Hi, I would like to use some D code in a C binary . Part of the D functionality used is by instantiating templated structs. Even if I just try to compile the following simple code: extern (C) { alias mytpye = BLA!(int); struct BLA(T) { T x; } } With the following gcd flag