I'm using visual studio c++ express and using the Command Line to Compile a C++ Program. What I typed at the command line was cl main.cpp
The code compiles but I get a linker error. The error is as follows error LNK2019: unresolved external symbol "int_cdec1 add(int,int)" main.exe fatal error LNK1120: 1 unresolved externals
This is the code I'm trying to compile
//main.cpp:
#include <iostream>
#include "add.h"
using namespace std;
int main()
{
cout << "2+3=" << add(2,3) << endl;
return 0;
}