Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a fixed back-end DLL for Pantheios logger

I have a VS 2005 solution that has numerous projects (most are DLL, 1 EXE which is a CppUnit project) and I am trying to add a fixed back-end DLL for the Pantheios logger so that I can use a single logger instance throughout the solution. Following the directions from the below URLs:

  • Use Pantheios logging framework from a dll
  • https://sourceforge.net/projects/pantheios/forums/forum/647484/topic/1639420/index/page/1

I seem to have a fixed back-end DLL that supports basic Pantheios logging statements e.g. log_DEBUG, log_ERROR etc. and even the Tracing API (http://www.pantheios.org/doc/html/group__group____tracing.html) e.g. PANTHEIOS_TRACE_NOTICE.

But I am stuck going forward because Pantheios requires "inserters" (an API to convert fundamental types to string) (http://www.pantheios.org/doc/html/group__group____application__layer__interface____inserters.html) to handle for example int, double, float, pointer etc.

I don't know how implement these "inserters" in the fixed back-end DLL that I created. If I simply call them from my other DLLs then I get an error such as this:

DLLApp.obj : error LNK2019: unresolved external symbol "public: __thiscall pantheios::integer::integer(int,int)" (??0integer@pantheios@@QAE@HH@Z) referenced in function "public: void __thiscall DLLApp::DLLAppSetup(void)" (?DLLAppSetup@DLLApp@@QAEXXZ)

I am not sure if I can (and need to) export the "integer" (and other inserter) class using the .DEF as mentioned in the sourceforge.net article OR if there is something else I am missing.

Any help would be most appreciated. Thanks in advance.

like image 260
ossandcad Avatar asked Nov 14 '22 14:11

ossandcad


1 Answers

In project properties page, change character set as "Use Multi-Byte Character Set"

like image 191
Seçkin Durgay Avatar answered Dec 15 '22 18:12

Seçkin Durgay