From: Robert Hoehne Newsgroups: comp.os.msdos.djgpp Subject: Re: [Q] What's this messages?? Date: Mon, 16 Dec 1996 13:07:05 +0100 Organization: TU Chemnitz-Zwickau Lines: 57 Message-ID: <32B53B69.73E1@Mathematik.tu-chemnitz.de> References: <3 DOT 0 DOT 32 DOT 19961216161245 DOT 006a4b24 AT icrn DOT chonbuk DOT ac DOT kr> NNTP-Posting-Host: errno.hrz.tu-chemnitz.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Jung-mun Kim DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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 * *****************************************************************