Em Andamento

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

CM_TRACE_FUNC("main");

and Summ function

double MyClass::Summ(double a1,double a2)

{

CM_TRACE_FUNC("MyClass::Summ");

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++

Ver mais: win32 programming, stack programming, double programming, programming static, obj c, win32, trace, software defined, win32 project, trace stack, custom compilation, compilation error, project trace, win32 mfc, compilation errors function, mfc win32, compilation errors, static library, software runs win, mfc simple, software runs, custom win32, compilation private, win utility, stack error

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

ID do Projeto: #6783788

Premiar a:

jamuna15

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)
2.6

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

Anurag7

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)
1.6
BritishMade

A proposal has not yet been provided

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

Hi, remove the following lines from trace.hpp 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)
0.0