[Issue 14918] New: Undefined reference when using a static array of pollfd's
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Aug 13 12:15:36 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14918
Issue ID: 14918
Summary: Undefined reference when using a static array of
pollfd's
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: druntime
Assignee: nobody at puremagic.com
Reporter: initrd.gz at gmail.com
This code:
import core.sys.posix.poll;
void main() {
pollfd[5] entry;
}
Produces the following error when compiling:
> rdmd ~/test.d
/tmp/.rdmd-1000/rdmd-test.d-F32582916A80A29195884B844D6EB219/objs/test.o:
In function `_Dmain':
/home/col/test.d:(.text._Dmain+0x10): undefined reference to
`_D4core3sys5posix4poll6pollfd6__initZ'
collect2: error: ld returned 1 exit status
--- errorlevel 1
--
More information about the Digitalmars-d-bugs
mailing list