sinojelly / mockcpp

Two C/C++ testing tools, mockcpp and testngpp.
Apache License 2.0
67 stars 42 forks source link

There is a link error if I use MOCKCPP_USE_MOCKABLE in my test project. #3

Closed GoogleCodeExporter closed 3 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile and install mockcpp in default configuration. 
2. Compile my test project, with /DMOCKCPP_USE_MOCKABLE.
3. (VS2005) Generation the following link error:
ut.obj : error LNK2001: "public: static class mockcpp::ChainableMockObject 
mockcpp::GlobalMockObject:
:instance" (?instance@GlobalMockObject@mockcpp@@2VChainableMockObject@2@A)

What version of the product are you using? On what operating system?
mockcpp 2.4, Windows XP and Visual Studio 2005.

Please provide any additional information below.
I think it may be better to provider a new cmake entry for 
MOCKCPP_USE_MOCKABLE. 

Original issue reported on code.google.com by han.bing...@gmail.com on 19 Apr 2010 at 5:50

sinojelly commented 3 years ago

It's too old, you can try the latest version. If the problem also exists, please reopen it again.