Mail Archives: djgpp/2001/11/07/10:49:19
Peter Johnsson (pej AT integris DOT se) wrote:
: I've come across some code that I wanted to compile with djgpp, The
: problem is that I doesn't recognize a call to a function. I'ts not a
: self-made function and I can't find any reference to it in any doc or
: source (include's or elsewhere).
: The error(s):
: D:\PROGRA~1\COCHC_~1\pf>gcc pf.c -o pf.exe
: d:/djgpp/tmp\ccbzpGMX.o(.text+0x49):pf.c: undefined reference to
: `sysint'
: d:/djgpp/tmp\ccbzpGMX.o(.text+0x14b):pf.c: undefined reference to
: `getds'
: d:/djgpp/tmp\ccbzpGMX.o(.text+0x18e):pf.c: undefined reference to
: `sysint'
: collect2: ld returned 1 exit status
: This is what the code looks like:
: __dpmi_regs r;
: .
: .
: .
: r.x.es = getds();
_my_ds() should do the trick.
Right,
MartinS
- Raw text -