On Mar 4, 2005, at 8:31 PM, Jwahar Bammi wrote:
I tracked it down to stringhelper::formatHex() there is some funny business going on there,with a automatic (LogString s) that is constructed and returned. Obviously that is wrong, since at the return 's' is out of scope already!
BTW what is the correct invocation on Mac OSX
i see -xcode, but isnt OSX just unix? i dont see any Xcode spoecific code anywhere?
If the return type was LogString& it would be a problem. LogString is typedef'd as std::wstring (the intent is also to support std::string containing UTF-8 chars but the supporting code isn't in place yet). So you should be looking at the equivalent of:
std::wstring StringHelper::formatHex(void*) {
std::wstring s;
...
return s;
}Xcode is an IDE provided with OS/X. The build-projects-xcode target attempts to generate an XCode project file in case you'd like to debug log4cxx using XCode in the same way the -cbx or -vc6 allow you to generate CBuilderX or Visual Studio 6 project files for debugging. Building on Mac OS/X should be the same as other Unix's but I need to clean some things up so until then add a "-Dextra.libs=pthread" to the command line.
p.s, I've got my Fedora Core downloaded and I'll set up a Virtual PC image overnight.
We should move further discussion to the log4cxx-dev mailing list.
