#include <iostream>
using namespace std;
int addint(const int& x, const int& y);
int main()
{
cout << addint(10,20) << endl;
return 0;
}int addint(const int& x, const int& y)
{ return x+y; }probably you need to add the static lib to your linker options ( project -> build options -> linker settings -> add )
Then search the internet to understand what are static libraries and how to use them.