Menu

#32 undefined reference to `_D3std1c5stdio6_iobuf6__initZ'

closed
nobody
None
5
2007-10-02
2007-09-24
No

[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.

Discussion

  • David Friedman

    David Friedman - 2007-09-25

    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.

     
  • Arthur Loiret

    Arthur Loiret - 2007-10-02

    Logged In: YES
    user_id=1897426
    Originator: YES

    Works with latest SVN version, thanks.

     
  • Arthur Loiret

    Arthur Loiret - 2007-10-02
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB