-
Hmmm, the character set was Multi-Byte, as per your link.
I changed it to Unicode but there was a compile error (it linked to the widstring libs though) :
2>Implicit linking to Pantheios libraries: (pantheios.1.$(XXXX).vc9.widestring.mt.debug.lib
2> pantheios.1.util.vc9.widestring.mt.debug.lib
2> pantheios.1.core.vc9.widestring.mt.debug.lib
2>...
2009-11-11 23:06:16 UTC by sgundry
-
hate this mark-up :-(
here is the right link [Code Project Article][1]
[1]: http://www.codeproject.com/KB/cpp/callback_backends.aspx.
2009-11-11 08:02:39 UTC by snikulov
-
first - it would be great to see your cmakelists.txt
second - it looks like wchar_t used, but not supported in pantheios AFAIK (read here http://www.codeproject.com/KB/cpp/callback_backends.aspx)
2009-11-11 07:46:38 UTC by snikulov
-
I've tried and both Debug and Release behave as mentioned.
Debug requires /NODEFAULTLIB:LIBCMTD /NODEFAULTLIB:MSVCPRTD
since I get a bunch of "already defined" linking errors but this adds a heap of warnings: 2>pantheios.1.core.vc9.dll.debug.lib(core.api.dll.debug.obj) : warning LNK4217: locally defined symbol ?_Debug_message@std@@YAXPB_W0I@Z (void __cdecl...
2009-11-11 05:43:27 UTC by sgundry
-
Which target do you use while building you code (Debug/Release)?
Try build both variants.
2009-11-11 05:28:16 UTC by snikulov
-
And I can get the pantheios version (pantheios_getVersion 1.0.1.192) and check the severity level (pantheios_isSeverityLogged(pantheios::SEV_ALERT) - which passes - but still no output.
I have also tried forcing the initialisation and doing it myself.
2009-11-11 05:25:34 UTC by sgundry
-
Here's the build output:
2>Compiling...
2>implicit_link.cpp
2>Implicit linking to Pantheios libraries: (pantheios.1.$(XXXX).vc9.dll.lib
2> pantheios.1.util.vc9.dll.lib
2> pantheios.1.core.vc9.dll.lib
2> pantheios.1.fe.simple.vc9.dll.lib
2> pantheios.1.bec.WindowsConsole.vc9.dll.lib
2> pantheios.1.be.WindowsConsole.vc9.dll.lib
2>example.cpp.101.cpp...
2009-11-11 05:22:53 UTC by sgundry
-
I'm using VC9 via CMake. My code - copied directly from example.cpp.101 folder - compiles and links (and displays the implicit linking with... text) without error but when I run no output is seen. I'm at a loss. I've also tried with the example.cpp.file code but the same thing occurs.
I run the examples built with the library and they display to the console fine. Clearly it is an issue...
2009-11-11 03:30:52 UTC by sgundry
-
Hi Matthew,
Thanks for this article. It definitely helped me get started writing a fixed back end DLL for all the projects in my solution to use. But I got stuck when I wanted to use inserters.hpp header. I would like to use the Trace API with the integer() and real() inserters, but am not sure how to use this fixed back-end DLL to export those classes. Right now if I call those classes (e.g...
2009-11-10 06:00:32 UTC by http://ossandcad.blogspot.com/
-
The w2m shim class allows logging of wide strings in various forms - but curiously it's missing an explicit w2m(std::wstring const &) constructor. Could one be added?
(It might be nice to mention the existence of w2m in the tutorial too - eg near http://www.pantheios.org/tutorials_code.html#numeric_and_pointer_types)
Thanks,
Alan.
2009-10-27 11:38:18 UTC by alanstokes