Mail Archives: djgpp/1996/12/16/17:30:52
Jung-mun Kim wrote:
>
> Hi...
>
> I have some trouble that I can't solve..
[snip]
> How can I remove this messages??
By writing the code correct:
> timer1.c: In function `init_handler':
> timer1.c:35: warning: implicit declaration of function
> `'
> timer1.c:39: warning: implicit declaration of function
> `'
These two functions (which you wanted to call) are:
_go32_dpmi_get_protected_mode_interrupt_vector
_go32_dpmi_set_protected_mode_interrupt_vector
> timer1.c: In function `main':
> timer1.c:67: warning: implicit declaration of function `_go32_lock_data'
must be:
_go32_dpmi_lock_data
> timer1.c: At top level:
> timer1.c:59: warning: return-type defaults to `int'
declare main as:
void main()
> timer1.c:68: warning: implicit declaration of function `printf'
> timer1.c:73: warning: implicit declaration of function `scanf'
You should include stdio.h
> timer1.c:77: warning: implicit declaration of function `stricmp'
You should include string.h
All the linker errors will disappear, if you fix the syntax errors
above.
OK. The above were all syntax errors, but you have at least one
coding error, which you will not see the first time, but sometimes
later:
> _go32_dpmi_lock_data(&string, sizeof(string));
This locks ONLY the pointer to the string, an NOT the string
itself, which you are accessing also.
May be there are also other wrong things (that's no easy topic),
but asked for removing the messages.
Robert
--
*****************************************************************
* Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau *
* Post: Am Berg 3, D-09573 Dittmannsdorf *
* e-Mail: Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE *
* WWW: http://www.tu-chemnitz.de/~rho *
*****************************************************************
- Raw text -