Mail Archives: djgpp/1997/01/10/13:32:31
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 -