For this project just win32 c++ (NOT MFC)
I have downloaded this project from [url removed, login to view] to trace function calls.
I have compiled Cmtrace and it runs fine.
Now I want use CMTRACE in a exutable and in a static library.
Then I have done a my custom win32 project.
It consists of two subprojects (TestTrace that contains WinMain and Lib1 that is static library )
I have also created a folder CMTRACE that contains just [url removed, login to view]
Lib1 contains just a class MyClass with a memeber function Summ() that does the summ of two doubles.
I need like trace WinMain :
CM_TRACE_FILE("./[url removed, login to view]"); // just once
and Summ function
double MyClass::Summ(double a1,double a2)
but errors occur during compilation . "..[url removed, login to view]([url removed, login to view]) : error LNK2005: "private: static int cm::Trace::depth_" (?depth_@Trace@cm@@0HA) already defined.."