error

Jonathan M Davis via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Nov 1 19:04:01 PDT 2016


On Wednesday, November 02, 2016 01:36:23 Concealment via Digitalmars-d-learn 
wrote:
> On Wednesday, 2 November 2016 at 01:32:27 UTC, Adam D. Ruppe
>
> wrote:
> > On Wednesday, 2 November 2016 at 01:27:32 UTC, Concealment
> >
> > wrote:
> >> can someone help me please?
> >
> > did you import anything? `import core.stdc.stdlib;` I think
> > will fix that one, but generally you need an import to use lib
> > functions.
>
> yea i did import core.stdc.stdlib; but it still gives me the same
> error

It's in core.stdc.time. The druntime modules are supposed to correspond to
the C header files, and time is in time.h, not stdlib.h.

- Jonathan M Davis



More information about the Digitalmars-d-learn mailing list