October 16, 2001 bios.h | ||||
---|---|---|---|---|
| ||||
Dear Mr.Walter At compilation of the text: #include <bios.h> void main() { int a = _PRINTER_WRITE; } The mistake is given out: int a = _PRINTER_WRITE; ^ est.c(7) : Error: undefined identifier '_PRINTER_WRITE' -- errorlevel 1 And in bios.h the constant is determined. Why? |
October 16, 2001 Re: bios.h | ||||
---|---|---|---|---|
| ||||
Posted in reply to ZaitcevE.V. | Likely you need to specify a DOS memory model, since none of the bios functions work under win32. DOS memory models are -ms, -mm, -mc, -ml, -mx. -Walter ZaitcevE.V. wrote in message <9qgjf0$1glq$1@digitaldaemon.com>... >Dear Mr.Walter > >At compilation of the text: > >#include <bios.h> > >void >main() > { > int a = _PRINTER_WRITE; > } > >The mistake is given out: > > int a = _PRINTER_WRITE; > ^ >est.c(7) : Error: undefined identifier '_PRINTER_WRITE' >-- errorlevel 1 > >And in bios.h the constant is determined. Why? > > |
Copyright © 1999-2021 by the D Language Foundation