From: Dr P Mouton Newsgroups: comp.os.msdos.djgpp Subject: Re: Help with included files!!!!! Date: Wed, 04 Jun 1997 12:02:37 -0700 Organization: University of Stellenbosch Lines: 23 Message-ID: <3395BBCD.7F5D@maties.sun.ac.za> References: <339482D7 DOT 48BD AT pop DOT erols DOT com> NNTP-Posting-Host: k2006b.sool.sun.ac.za Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Lowekamp wrote: > c:/djgpp/tmp\ccdaaaaa(.text+0x22):a.c: undefined reference to > 'GrSetMode' > Help please... All that I can think off is that you have attempted to call a function that the linker ('cause this error is generated by ld, the DJGPP linker) is not able to find. Check what files you feed gcc on the command line: somewhere you are short an object (.o) file that contains this function. Another fing: you need to define this func as an "extern" prototype in the file you use it in (or in a generic .h "header" file). The summary is this: this error is generated by the linker, so look at the files you are linking when this happens. One of them seems to be short this function. Hope this helped! Rylan