cupuh com
sahabat-keyboard.web.id
Semarak 4 Tahun HN Community
Semarak 4 tahun HN Community
Semarak 4 Tahun HN Community log4cxx with Visual Studio 2008 | welcome to shoping news | simple shoping

log4cxx with Visual Studio 2008

Bookmark and Share
1- Download necessary files from here

2- Then unrar the file and under msvc9-proj directory, open the VS project to build necessary dll and library files.

3- Copy the dll file under Release_Shared.

4- Open Visual Studio. Tools->Options->VC++Directories->Library Files, add path to Release_Shared directory for linking necessary libraries.

5- Tools->Options->VC++Directories->Include Files, add path to src/main/include

6- To use the static link log4cxx library, the macro LOG4CXX_STATIC MUST be defined in your projects preprocessor, otherwise your compilation will suffer unresolved linking error:
6-1) Open your project's settings.
6-2) C/C++->Preprocessor->Preprocessor Definitions , add LOG4CXX_STATIC.

Now, you can use logger with Vs 2008.

Ref: http://www.dreamcubes.com/blog/index.php?itemid=43

baca juga artikel terkait dibawah ini

{ 0 komentar... Views All / Send Comment! }