Thread overview |
---|
November 10, 2004 where are dpmi functions defined? | ||||
---|---|---|---|---|
| ||||
I was trying to use one of the function defined in dpmi.h header. So I wrote that program: #include <stdio.h> #include <dpmi.h> MemInfo_t mi; void main() { if(dpmi_IsRealMode()) printf("Real mode\n"); else printf("non Real mode\n"); dpmi_GetFreeMemInfo(&mi); printf("%lu\n", mi.LargestContiguousBlock); } but linker says: D:\tmp>dmc -o sample1.exe -mx sample.c x32v.lib link cx+sample,sample1,,x32v/noi; OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved sample.obj(sample) Error 42: Symbol Undefined _dpmi_GetFreeMemInfo sample.obj(sample) Error 42: Symbol Undefined _dpmi_IsRealMode --- errorlevel 2 I did a search in lib subdirectory of dmc compiler and not found any *.lib containing those undefined functions. So, what additionaly I should link to my program? Thanks in advance, tomekM |
November 11, 2004 Re: where are dpmi functions defined? | ||||
---|---|---|---|---|
| ||||
Posted in reply to tomekM | Did you get the files from www.dosextender.com? |
November 12, 2004 Re: where are dpmi functions defined? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | In article <cmuev8$pph$1@digitaldaemon.com>, Walter says... > >Did you get the files from www.dosextender.com? > > Yes, I did. I took x32.zip file from ftp://ftp.dosextender.com/x32.zip tomekM |
November 14, 2004 Re: where are dpmi functions defined? | ||||
---|---|---|---|---|
| ||||
Posted in reply to tomekM | Those functions are only available under 16 bit Windows. Sorry. "tomekM" <tomekM_member@pathlink.com> wrote in message news:cmt4ss$1tsb$1@digitaldaemon.com... > > I was trying to use one of the function defined in dpmi.h header. So I wrote > that program: > > #include <stdio.h> > #include <dpmi.h> > > MemInfo_t mi; > > void main() > { > if(dpmi_IsRealMode()) printf("Real mode\n"); > else printf("non Real mode\n"); > > dpmi_GetFreeMemInfo(&mi); > printf("%lu\n", mi.LargestContiguousBlock); > > } > > but linker says: > > D:\tmp>dmc -o sample1.exe -mx sample.c x32v.lib > link cx+sample,sample1,,x32v/noi; > OPTLINK (R) for Win32 Release 7.50B1 > Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved > > sample.obj(sample) > Error 42: Symbol Undefined _dpmi_GetFreeMemInfo > sample.obj(sample) > Error 42: Symbol Undefined _dpmi_IsRealMode > > --- errorlevel 2 > > I did a search in lib subdirectory of dmc compiler and not found any *.lib containing those undefined functions. So, what additionaly I should link to my > program? > > Thanks in advance, > tomekM > > |
Copyright © 1999-2021 by the D Language Foundation