Mail Archives: djgpp/2009/08/27/11:49:40
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" <rugxulo AT gmail DOT com>
Newsgroups: comp.os.msdos.djgpp
To: <djgpp AT delorie DOT com>
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" <stephen DOT DOT DOT AT att DOT net> 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
- Raw text -