EmbLogic's Blog

function

#include
void print_massage( void );
void print_massage( void )
{

printf(“This is a called print_massage\n”);

}
main()
{

ptint_massage();

}
gcc -o first first.c
when i compile my programme i am getting [ (.text+0x1a): undefined reference to `ptint_massage'
collect2: ld returned 1 exit status ]this error. how can i resolve this problem?

2 Responses to function

  1. vikram sharma says:

    Line 1: Complete #include

    In main() : correct the spelling of function “print_massage()”

    Your problem will be solved.

  2. vikram sharma says:

    Line 1 : “#include”

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>