When I run my program I get a compiler error saying undefined reference to 'Get_host'
please help
Code://im_sender.c
#include "cursor.h"
main (int argc, char *argv [])
{
printf("%s\n",Get_host());
return 0;
}
Code://cursor.h
#ifndef CURSOR_H
#define CURSOR_H
char *Get_host(void);
//char *Get_room;
//char *Get_name;
#endif
Code://cursor.c
#include "cursor.h"
char Host_port[56];
char* Get_host() {
return Host_port;
}