hey guys i m finding it difficult to link the different files together in c..
here is my code...
//main.c
#include <stdio.h>
#include "other.h"
int main (void)
{
printf("%d\n", getfavorite());
return 0;
}
//other.h
#ifndef _OTHER_H
#define _OTHER_H
int getfavorite(void);
#endif
//other.c
#include "other.h"
int getfavorite (void)
{
return 3;
}
but it always shows me this error...
Linker Error: Undefined Symbol getfavorite() in module MAIN.C
can nyone plz help me out in this..i m using Turbo c++...