title: linking error for not being able to link header file to cpp file correctly
body: <p>I have two projects in one solution. When I try to access a function of one project's from another one I get <code>error LNK2001: unresolved external symbol</code>. But the linking error only happens when the function is declared in the header file but defined in the corresponding cpp file. If the function is defined in the header file than the error does not occur. Also calling function from same project doesn't give any error. Only calling from another results on linking error.</p>
  
  <p>EDIT: I am using visual studio 2010. I don't know if its worth mentioning that the function which is being called is in a project that outputs a lib file and the one which is calling that function outputs a exe file.</p>