delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/10/13:32:31

Newsgroups: comp.os.msdos.djgpp
From: Peter Berdeklis <peter AT atmosp DOT physics DOT utoronto DOT ca>
Subject: Re: dosmemgetb error
Message-ID: <Pine.SGI.3.91.970109181241.10525B-100000@chinook.physics.utoronto.ca>
Nntp-Posting-Host: chinook.physics.utoronto.ca
Sender: news AT info DOT physics DOT utoronto DOT ca (System Administrator)
Mime-Version: 1.0
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: <Pine DOT GSO DOT 3 DOT 95 DOT 970107230121 DOT 27833A-100000 AT hops DOT cs DOT jhu DOT edu> <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 <sys/movedata.h>.  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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019