tag:blogger.com,1999:blog-6075014361451882171.post2589104758044228476..comments2023-06-12T09:13:24.693-05:00Comments on Computer Science: Pantheios logging library - basicSon Dinhhttp://www.blogger.com/profile/07295136489358607599noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-6075014361451882171.post-48361127014105937062015-05-28T05:12:00.009-05:002015-05-28T05:12:00.009-05:00https://stackoverflow.com/questions/16706885/build...https://stackoverflow.com/questions/16706885/build-error-in-pantheios-c-logger-on-windows/30455772#30455772Anonymoushttps://www.blogger.com/profile/04120388935596390923noreply@blogger.comtag:blogger.com,1999:blog-6075014361451882171.post-38418244219685743982015-04-11T00:55:43.450-05:002015-04-11T00:55:43.450-05:00Nice Articles Thanks For Sharing. it support servi...Nice Articles Thanks For Sharing. <a href="http://www.bremarnetworking.com/it-support-services.html" rel="nofollow">it support services for small business</a><br /><a href="http://www.bremarnetworking.com/computer-support-services.html" rel="nofollow">small business computer support services</a><br />Anonymoushttps://www.blogger.com/profile/07412637171643806613noreply@blogger.comtag:blogger.com,1999:blog-6075014361451882171.post-62471848470571639512012-09-05T12:21:34.126-05:002012-09-05T12:21:34.126-05:00Hi, when I compile the pantheios library I get the...Hi, when I compile the pantheios library I get the following error :<br /><br />error C2664: 'xtests::c::xtests_startRunner' : cannot convert parameter 1 from 'con<br />st pan_char_t [25]' to 'const char *'<br /> Types pointed to are unrelated; conversion requires reinterpret_cast, C-<br />style cast or function-style cast<br />NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0<br />\VC\BIN\cl.EXE"' : return code '0x2'<br /><br />Any idea where it could come from?<br /><br />Many thanksyelaziz10https://www.blogger.com/profile/10627662253782490937noreply@blogger.comtag:blogger.com,1999:blog-6075014361451882171.post-22225444928442424422012-02-22T23:16:32.779-06:002012-02-22T23:16:32.779-06:00Here is a Visual Studio 10 version:
Add the panth...Here is a Visual Studio 10 version:<br /><br />Add the pantheios and stlsoft include directories to the VS project's Include Directories; specify "$(FASTFORMAT_ROOT)/include" and "$(STLSOFT)/include".<br /><br />Add the pantheios lib directory to the VS project's Library Directories: specify "$(FASTFORMAT)/lib".<br /><br />========================================================================<br />// file tutorial1.cpp<br /><br />#include "stdafx.h"<br /><br />// the quotes should be changed to angle brackets (the blog posting will strip them)<br />#include "pantheios/pantheios.hpp"<br />#include "pantheios/frontends/stock.h"<br />#include "pantheios/inserters/args.hpp"<br /><br />// implicit linking<br />#include "pantheios/implicit_link/core.h"<br />#include "pantheios/implicit_link/util.h<br />#include "pantheios/implicit_link/be.fprintf.h"<br />#include "pantheios/implicit_link/fe.all.h"<br /><br />//-----------------------------------------------------------------------------<br /><br />//Specify process identity<br />const PAN_CHAR_T PANTHEIOS_FE_PROCESS_IDENTITY[] = _T("tutorial1.exe");<br /><br />//-----------------------------------------------------------------------------<br /><br />int _tmain( int argc, PAN_CHAR_T** argv ){<br /><br /> //Use pantheios::log_xxx() or pantheios::log(xxx, ) with xxx is severity level<br /><br /> try<br /> {<br /> pantheios::log( pantheios::debug<br /> , _T("Entering main(")<br /> , pantheios::args( argc<br /> , argv<br /> , pantheios::args::arg0FileOnly<br /> )<br /> , _T(")")<br /> );<br /><br /> pantheios::log_DEBUG(_T("debug"));<br /> pantheios::log_INFORMATIONAL(_T("informational"));<br /> pantheios::log_NOTICE(_T("notice"));<br /> pantheios::log_WARNING(_T("warning"));<br /> pantheios::log_ERROR(_T("error"));<br /> pantheios::log_CRITICAL(_T("critical"));<br /> pantheios::log_ALERT(_T("alert"));<br /> pantheios::log_EMERGENCY(_T("emergency"));<br /><br /> return 1;<br /> }<br /> catch(std::bad_alloc&){<br /> pantheios::log_ALERT(_T("out of memory"));<br /> }<br /> catch(std::exception& x){<br /> pantheios::log_CRITICAL(_T("Exception: "), x);<br /> }<br /> catch(...){<br /> pantheios::logputs( pantheios::emergency, _T("Unknown error") );<br /> }<br /><br /> return 2;<br />}dbeckhttps://www.blogger.com/profile/09663895362531116074noreply@blogger.comtag:blogger.com,1999:blog-6075014361451882171.post-89222523970372879582012-02-22T23:09:56.600-06:002012-02-22T23:09:56.600-06:00This comment has been removed by the author.dbeckhttps://www.blogger.com/profile/09663895362531116074noreply@blogger.comtag:blogger.com,1999:blog-6075014361451882171.post-10622764558804570212011-09-15T06:26:53.395-05:002011-09-15T06:26:53.395-05:00This is going to be very useful for me when I come...This is going to be very useful for me when I come to try pantheios on my linux machine. Many thanks for making this info freely available. But please add build instructions for windoze. That way when I am a Pantheios convert (pantheist???) I can point my clients here (who are invariably using windoze, sigh).Andrew Marlowhttps://www.blogger.com/profile/15677162551542366263noreply@blogger.comtag:blogger.com,1999:blog-6075014361451882171.post-39929383301383112262010-11-02T21:30:00.147-05:002010-11-02T21:30:00.147-05:00You're welcome. You've done a great librar...You're welcome. You've done a great library, thanks for itSon Dinhhttps://www.blogger.com/profile/07295136489358607599noreply@blogger.comtag:blogger.com,1999:blog-6075014361451882171.post-79342274458028329892010-11-02T16:31:39.059-05:002010-11-02T16:31:39.059-05:00Thanks for doing this!
MattThanks for doing this!<br /><br />MattMatt Wilsonhttps://www.blogger.com/profile/08032564940029177259noreply@blogger.com