X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com X-Yahoo-Newman-Id: 757745 DOT 84979 DOT bm AT omp417 DOT mail DOT mud DOT yahoo DOT com X-YMail-OSG: 23D5vvcVM1noB.aOCoJMmz4kTV1DmVNkEX5haXxju2.AmwjPm607GupfJytGkeEbCQWdBzzCsO9487EtLOrfqe8qQWaKsvwyI.CCMFOQEoe2rWM5z44sdc8CJKFmmmDaqclwBk8ayMCGx06uXqD9UwDKCU63_6YjO0LP09p8aomg7bVlEBoGGdOvYorRbrXHypTvBi8DB19BrKBaeRNm5hzLIQSTgE4ylWmCv5jAuSMiZg-- X-Yahoo-Newman-Property: ymail-3 Message-ID: <000701ca272b$e3e91220$6d01a8c0@CSDSML> From: "stephen att" To: References: <005e01ca267a$ca5eda80$6d01a8c0 AT CSDSML> <765557ae-bfc3-410d-8bc3-75a37cad484b AT m38g2000yqh DOT googlegroups DOT com> Subject: Re: PROBLEMS COMPILING DPMI APPLICATION - LIBRARY ROUTINES NOT FOUND Date: Thu, 27 Aug 2009 08:34:38 -0700 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3598 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 Reply-To: djgpp AT delorie DOT com dear whoever your observations and suggestions are completely correct - I wondered about the "-I" flag myself and found that I had set up djgpp environment variable incorrectly (spelling) - once I fixed that all was great, including compiling the big application (which I can now start working on modifying). Thanks for the suggestion and sorry for being so dumb - it always pays to have no assumptions and go back to first principles right? cheers stephen mckinnon ----- Original Message ----- From: "Rugxulo" Newsgroups: comp.os.msdos.djgpp To: Sent: Wednesday, August 26, 2009 17:13 Subject: Re: PROBLEMS COMPILING DPMI APPLICATION - LIBRARY ROUTINES NOT FOUND Hi, On Aug 26, 1:26 pm, "stephen att" wrote: > > I have a very large application which uses DPMI and I can't get it to > compile with DJGPP - > I always get "undefined reference" fatal errors. "__dpmi_int" is always > identified as such a > reference although I am including the correct header file and the compile > include directive - > the command line I use is: > > gcc testdpmi.c -o a.exe -I c:\djgpp\include You shouldn't need to specify that include manually. That basically means you haven't done the following beforehand (see README.1ST or the FAQ): set DJGPP=c:\djgpp\djgpp.env And you already have your PATH set, so you should now be able to do this (to produce A.EXE): gcc testdpmi.c > I believe the dmpi library calls are in liba so this shouldn't be > happening; can you help? Yes, it's in /dev/env/DJDIR/lib/libc.a (the C library), aka c:\djgpp \lib\libc.a (Probably using "nm" wrong, but whatever, it just proves a point): [ Vista/DJGPP ] - Wed 08/26/2009 >nm /dev/env/DJDIR/lib/libc.a | grep - c dpmi_int 118