Newsgroups: comp.os.msdos.djgpp From: Peter Berdeklis Subject: Re: dosmemgetb error Message-ID: Nntp-Posting-Host: chinook.physics.utoronto.ca Sender: news AT info DOT physics DOT utoronto DOT ca (System Administrator) Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Organization: University of Toronto - Dept. of Physics In-Reply-To: <5avui6$1gr$1@mirv.unsw.edu.au> Date: Thu, 9 Jan 1997 23:22:56 GMT References: <5avui6$1gr$1 AT mirv DOT unsw DOT edu DOT au> Lines: 23 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp On 8 Jan 1997, Abbas Imani wrote: > however, when I compile and link the program, the compiler gives me this > warning in compilation > ------------------------------------------- > implicit declration of function "dosmemgetb" > ------------------------------------------- > and the following error in linking. > -------------------------------------------- > undefined reference to function "dosmemgetb". > --------------------------------------------- You have not included the header file which declares this function, in this case . Therefore the compiler assumes that it is a function that takes no arguments and returns int, but it isn't. As for the undefined reference, that's because dosmemgetb is actually spelled _dosmemgetb. ^ --------------- Peter Berdeklis Dept. of Physics, Univ. of Toronto