undefined reference to `_D3std1c5stdio6_iobuf6__initZ'
Status: Alpha
Brought to you by:
dvdfrdmn
[Reported in Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=443744\]
$ cat test.d
import std.c.stdio;
int main()
{
FILE *files[1] = [stdin];
return 0;
}
$ gdc -o /dev/null test.d
/tmp/cc2CdHzH.o:(.data._D29TypeInfo_S3std1c5stdio6_iobuf6__initZ[_D29TypeInfo_S3std1c5stdio6_iobuf6__initZ]+0x28): undefined reference to `_D3std1c5stdio6_iobuf6__initZ'
collect2: ld returned 1 exit status
Thanks.
Logged In: YES
user_id=1378044
Originator: NO
Can you confirm this happens with the latest SVN revision?
Also, can you run:
ar t <gdc prefix>/lib/libgphobos.a | grep stdio
There should be *two* lines that read "stdio.o". If this is not the case, you are using an old version of the library.
Logged In: YES
user_id=1897426
Originator: YES
Works with latest SVN version, thanks.