X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Trace-PostClient-IP: 68.147.131.211 From: Brian Inglis Newsgroups: comp.os.msdos.djgpp Subject: Re: Build Errors . . . Organization: Systematic Software Message-ID: References: X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 72 Date: Fri, 12 Mar 2004 18:46:23 GMT NNTP-Posting-Host: 24.71.223.147 X-Complaints-To: abuse AT shaw DOT ca X-Trace: pd7tw2no 1079117183 24.71.223.147 (Fri, 12 Mar 2004 11:46:23 MST) NNTP-Posting-Date: Fri, 12 Mar 2004 11:46:23 MST To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Fri, 12 Mar 2004 11:14:26 -0500 in comp.os.msdos.djgpp, "Dennis Daniels" 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