Mail Archives: djgpp/2004/03/12/14:00:49
On Fri, 12 Mar 2004 11:14:26 -0500 in comp.os.msdos.djgpp, "Dennis
Daniels" <ddaniels AT egenera DOT com> wrote:
>To All,
> I'm new to djgpp and I've just setup a djgpp environment on a Win2000
>system to rebuild some DOS legacy code that we're having some problems with
>that I need to fix.
>During the build the following code segment . . .
>
>****************************************************************************
>//----------------------------------------------------------
>// This macro will create a list of mapped uint32 values.
>// Use the call map_vpage_to_physpage(uint32 vaddr, uint32 physaddr)
>// to store pairs and the call
>// retrieve_vpage_from_physpage(uint32 physaddr) to retrieve
>// them. There is currently on call to unmap them although
>// it could be added. Needless to say, the map_node type must
>// be defined where ever this is used.
>//----------------------------------------------------------
>
>MAP_LIST(vpage, physpage)
>****************************************************************************
>
>Gives me the following build error . . .
>
>****************************************************************************
>D:\work\gnn_diag\src\DOS_DIAG\gnn_diag>make
>make.exe[1]: Entering directory `d:/work/gnn_diag/src/DOS_DIAG/common'
>gcc -c -O3 -g -I../h -DDOS\
> -o ../obj/hdos.o\
> hdos.c
>hdos.c:864:25: pasting "map_vpage_to_physpage" and "(" does not give a valid
>pre
>processing token
>hdos.c:864:25: pasting "retrieve_vpage_from_physpage" and "(" does not give
>a va
>lid preprocessing token
>make.exe[1]: *** [../obj/hdos.o] Error 1
>make.exe[1]: Leaving directory `d:/work/gnn_diag/src/DOS_DIAG/common'
>make.exe: *** [../obj/pal.o] Error 2
>****************************************************************************
>
> I cannot find where map_vpage_to_physpage() and
>retrieve_vpage_from_physpage() are defined which makes me think that I did
>not get all of the binaries/libraries that I need. Does anyone know offhand
>what package(s) I missed?
Where is the macro MAP_LIST(... "#define"d? Post the definition.
From the messages, it looks like the token pasting operator "##" may
be used unnecessarily a couple of places in that macro.
> Also, when I comment out "MAP_LIST(vpage, physpage)" to work-around the
>error I get the following output below which seems to indicate that I'm
>missing some C++ libraries? When I looked at the FAQ "4.4 What Files to
>Download?" I saw v2gnu/lgp2952b.zip, but that library is no longer
>supported, so I'm not sure exactly what I need.
> Thanks ahead of time for any help, in the meantime I'll keep on digging . .
Comments:
"v2gnu/lgp2952b.zip Additional GNU C++ class libraries. This library
is now deprecated and no longer maintained. I suggest not to use it."
Environment variable DJGPP should point to the env file not directory:
DJGPP=c:\djgpp
should be:
DJGPP=c:\djgpp\djgpp.env
Change this in the system control panel environment tab.
--
Thanks. Take care, Brian Inglis Calgary, Alberta, Canada
Brian DOT Inglis AT CSi DOT com (Brian dot Inglis at SystematicSw dot ab dot ca)
fake address use address above to reply
- Raw text -