I have the following situation. I've written a library (libA) with some helper classes and an application (app) which depends on this library. In one of the cpp files of the app I call a function from libA which has the following form:
int computeSomething(int param)
{
int val;
// Call to an internal libA function.
val = computeInternal(param);
return val;
}
During building of my app I get a linking error "undefined reference to computeInternal" which leads to a following error message "collect2: error: ld returned 1 exit status". Anyone has an idea why the linker requires a reference to an internal libA function?
What is more interesting my application was built successfully using Microsoft tools.