Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

[C++ unit test] undefined reference to the function that already stubbed

lijieamd
lijieamd Posts: 1

Environment:
I'm working on Window system & C++test 9.4(eclipse) & gcc4.7

Procedure
First, I evaluate the unit test with a very simple C++ code, just a main() and a simple function, I stub the function and run the unit test, everything is OK.

Then I move to my real project code, and 3 steps as follows (same with the simple example above):
1. Generate unit test (OK, test case generated successfully)
2. Generate stubs (OK, auto stub function generated, displayed correctly in stub view)
3. Run unit test (failed with undefined reference to the stubbed function)