Simple1.c
------------------------------------
#include<stdio.h>
int f1(int x, int y)
{
printf("%d %d", x, y);
return x+y;
}
-----------------------------------
Simple2.c
------------------------------------
#include<stdio.h>
extern int f1(int x,int y);
void main()
{
printf(" %d\n", f1(5,6));
}
-----------------------------------
I was trying complie Simple1.c file then Simple2.c on Turbo C/C++ Compiler (Windows Xp). It showing following error :
Compiling Sample2.c :
Linking Sample2.exe:
Linker Error : Undefined Symbol _f1 in module Sample2.c
Can any body help me regards this.
my mail id is : <snipped>