Undefined reference error when array size is given

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jan 19 13:16:31 PST 2015


On Mon, 19 Jan 2015 21:00:55 +0000
tcak via Digitalmars-d-learn <digitalmars-d-learn at puremagic.com> wrote:

> What is the reason of this error exactly?
"core.sys.posix.poll.d" module is not compiled into druntime. as it is
in "include" path, compiler sees it and you can use `pollfd` struct.
but as it's not in link library, there is no `.init` section for it.

as a workaroun you can either manually add that module to dmd command
line, or use `pollfd[2] pollList = void;` (and don't forget to
manually initialise ALL pollfd fields for all array elements then).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20150119/fcf71042/attachment.sig>


More information about the Digitalmars-d-learn mailing list