Hello Micha�l,

Yes, I did compile with an Unicode target, because my program is a dialog based application using MFC and also /Zc:wchar_t option.

Here are my compile/link options and a piece of VC project setting.

p.s. Is it possible to use log4cxx with MFC dialog based application?

[compile]
/Od /I "../../include" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_USRDLL" /D "DLL_EXPORTS" /D "UNICODE" /D "LOG4CXX" /D "LOG4CXX_DLL" /D "_WINDLL" /D "_UNICODE" /FD /EHsc /RTC1 /MDd /GS /Zc:wchar_t /YX"stdafx.h" /Fp".\Unicode_D/dll.pch" /Fo".\Unicode_D/" /Fd".\Unicode_D/" /FR".\Unicode_D/" /W3 /nologo /c /Zi


[link]
/OUT:"../Bin/Unicode_D/log4cxx.dll" /INCREMENTAL:NO /NOLOGO /DLL /DEBUG /PDB:"../Bin/Unicode_D/log4cxx.pdb" /MAP:".\Unicode_D/log4cxx.map" /IMPLIB:"../Lib/Unicode_D/log4cxx.lib" /MACHINE:X86 Ws2_32.lib odbc32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib


[dll.vcproj]
<Configuration
        Name="Unicode Debug|Win32"
        OutputDirectory=".\Unicode_D"
        IntermediateDirectory=".\Unicode_D"
        ConfigurationType="2"
        UseOfMFC="0"
        ATLMinimizesCRunTimeLibraryUsage="FALSE"
        CharacterSet="1">

 Tomoya,

Michael CATANZARITI wrote:
Hello Tomoya,

Did you compile log4cxx with an Unicode target ?

Micha�l

Selon tomoya_sueyoshi <[EMAIL PROTECTED]>:


Hello,

I'd like to build log4cxx into my program. However, I encountered the
problem that I mentioned at this subject. RollingFileAppender.cpp uses a
T2A macro that relies on the memory allocation by alloca() at the
following context on line 73 and 81.

rename(T2A(file.str().c_str()), T2A(target.str().c_str()));

I guess, in the rename(oldpath,newpath) function, oldpath is the same as
newpath. So, rename function does not rename correctly. Does it make
sense and does anyone have a good workaround?


F.Y.I. My environment is MS VC++ .net 2003 (English) Windows XP + sp2 (English)

Tomoya,

__________________________________________________
Do You Yahoo!?
http://bb.yahoo.co.jp/






__________________________________________________ Do You Yahoo!? http://bb.yahoo.co.jp/



Reply via email to