libraries on windows
Kagamin
spam at here.lot
Tue Apr 19 13:36:27 PDT 2011
---
struct BL{int OAT=42;}
BL[1024][64][4] bloat;
void foo()
{
bloat[0][0][0].OAT=1;
}
void goo(){}
---
I compile this file and archive it to a library and then link to another file.
If goo is used, bloat also gets into executable, which is not true for dmd.
Is this expected behavior or do I miss some options? Does gdc work the same on Linux?
I use
ar -cru test2.a test2.o
gdc -v2 test.d test2.a -o test.exe -s -Os
More information about the D.gnu
mailing list