I am trying to create a basic program with a user defined header file.I created the project in visual studio.
test1.cpp
#include <stdio.h>
#include "multiply.h"
int main()
{
int y;
y=multiply(5,10);
printf("%d\n",y);
printf("%s","jigar");
getch();
return 0;
}
multiply.h
int multiply(int a,int b);
multiply.c
#include "multiply.h"
int multiply(int a, int b)
{
return a*b;
}
However while running the program test1.cpp I am getting the error as
Error 1 error LNK2019: unresolved external symbol "int __cdecl multiply(int,int)" (?multiply@@YAHHH@Z) referenced in function _main test1.obj
Some one please help me out ..