From: eplmst AT lu DOT erisoft DOT se (Martin Stromberg) Newsgroups: comp.os.msdos.djgpp Subject: Re: calling an unknown function? - getds() Date: 7 Nov 2001 15:18:52 GMT Organization: Ericsson Erisoft AB, Sweden Lines: 30 Message-ID: <9sbjcs$bh$1@antares.lu.erisoft.se> References: <6084f1ca DOT 0111070650 DOT 5290be29 AT posting DOT google DOT com> NNTP-Posting-Host: lws256.lu.erisoft.se X-Newsreader: TIN [version 1.2 PL2] To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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