no size for type nothrow extern (Windows) int()

Alex Rønne Petersen alex at lycus.org
Sat Nov 10 18:55:08 PST 2012


On 11-11-2012 02:49, cal wrote:
> I want to call Windows api function VirtualAlloc. I include
> std.c.windows.windows but get the following error from dmd 2.061 (and
> 2.060):
>
> Error: no size for type nothrow extern (Windows) int()
>
> What does this message mean? If I provide my own prototype of the
> function, same error.
>
>

Can you give a self-contained repro that illustrates the problem?

Also, please use core.sys.windows.windows instead. The std.c.* package 
is going to be deprecated soon-ish.

-- 
Alex Rønne Petersen
alex at lycus.org
http://lycus.org


More information about the Digitalmars-d-learn mailing list