This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

function reference from standard library


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.