win32 c++ trace software

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)



return (a1+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.."

Habilidades: Programação C++

Veja mais: win32 programming, stack programming, double in c programming, c programming static, c programming software, c programming double, obj c, c# programming software, win32, trace, software defined, win32 project, trace stack, win32 http, custom compilation, compilation error, project trace, win32 mfc, compilation errors function, mfc win32, compilation errors, static library, custom http class, software runs win, mfc simple

Acerca do Empregador:
( 59 comentários ) Budapest, Italy

ID do Projeto: #6783788

Concedido a:


I have solved the build issue with the source. If you assign the project, I can send you the modified files immeditely.

$20 USD em 1 dia
(1 Comentário)

4 freelancers estão ofertando em média $33 para esse trabalho


Hi, I have 10+ year experience and saw your all log. I am confident that I will solve your issue soon. Thanks, Anurag

$35 USD em 1 dia
(3 Comentários)

A proposal has not yet been provided

$66 USD em 1 dia
(0 Comentários)

Hi, remove the following lines from [login to view URL] std::string Trace::trace_file_ = ""; int Trace::depth_ = 0; // arbitrarily support nesting 34 deep for no particular reason const char* Trace::nest_ = "| Mais

$10 USD em 1 dia
(0 Comentários)