function reference from standard library

Dony (dony@willowglen.com.sg)
Mon, 12 Oct 1998 15:17:54 +0800


Hii all,

Another confusion in GCC :
In my code I use 'strlen()' from standard library 'string.h'
I have already included the header --->>> #include <string.h>
Code is successfuly being compiled, but during linking, an error happens
--->>> main.c(.text+0x666):main.c: undefined reference to strlen

Beside that I get a warning (I don't know would whether it will effect
the functionality of my program or not), as I define main(){ ....}.
The message is like this :
main.c:51: warning: return-type defaults to 'int'  --->>> point to line
begin of fucntion main()
main.c:153: warning: control reaches end of non-void function  --->>>
point to end of function main()

Can anybody explain on that??
Thank's

-- 
Dony
Email : dony@willowglen.com.sg
________________________________________________
To get help for the crossgcc list, send mail to
crossgcc-request@cygnus.com with the text 'help'
(without the quotes) in the body of the message.