Thanks for the reference.
I can see that the OP in the thread you gave me is facing the same symptoms at least since reply#8. I haven't read his project files yet, so I don't know for sure that it is exactly the same, but we both get the identical 'undefined reference'. I also see that the OP is convinced that CB is finding the library, but I am not sure I should agree.
And why _does_ it say 'SOLVED', when the OP is still having the problem in reply#13? Did the OP figure out the solution and then never post his project files? If so, then no, there is nothing in that thread that is helpful to me.
Finally, he says to click on
http://pastebin.com/575053 to see the code, but I get a blank CGI form when I do that. So I can't even compare the code.
My code, OTOH, is ridiculously simple, so I should not need to zip it. It is:
#include <iostream>
#include "StaticLibEx.h" // Not sure how it found it, but it found it.
using namespace std;
int main()
{
int i=5, j=3;
cout << "Hello world!" << endl;
cout << "Testing Static Lib example:" << endl;
int lib_return = SampleAddInt(i,j); // error message here, as if lib nt fnd or MT
cout << "SampleAddInt(5,3) returns " << lib_return << endl;
return 0;
}
And this code is in a separate project, titled "Console Application" (created using Project:New Project:Console Application) with no changes, except that the directory was changed to keep from overwriting 'main.cpp' in other projects.
Finally, the source and project for Static Lib are unmodified from the default created by using Project:New Project:Static Library