From: pej AT integris DOT se (Peter Johnsson) Newsgroups: comp.os.msdos.djgpp Subject: calling an unknown function? - getds() Date: 7 Nov 2001 06:50:13 -0800 Organization: http://groups.google.com/ Lines: 39 Message-ID: <6084f1ca.0111070650.5290be29@posting.google.com> NNTP-Posting-Host: 193.44.17.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1005144614 6344 127.0.0.1 (7 Nov 2001 14:50:14 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: 7 Nov 2001 14:50:14 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi ! 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(); . . . ------------------ and: if(sysint(DISKINT, &r, &r) & 1) ++times; Hopefully someone more intelligent and experienced can help me with this, or ? Regards Peter