||warning: direct access in function 'wxLogger::~wxLogger()' from file '/usr/local/lib/libwxcode_osx_cocoau_pdfdoc-3.1.a(pdftemplate.o)' to global weak symbol 'wxStringToNumHashMap_wxImplementation_HashTable::DeleteNode(_wxHashTable_NodeBase*)' from file '/Users/admin/Documents/_builds/obj/release64/main/ds/wxMainDll/CreateNewDatabaseDlg.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.|
If I link dynemically then I don't get this message
In both cases I can create PDF files as I expected
cutecode wrote: ↑Tue Mar 05, 2019 7:21 pm
If I link my somelib.dylib with libwxcode_osx_cocoau_pdfdoc-3.1.a staticcaly, then I get this annoying warning
||warning: direct access in function 'wxLogger::~wxLogger()' from file '/usr/local/lib/libwxcode_osx_cocoau_pdfdoc-3.1.a(pdftemplate.o)' to global weak symbol 'wxStringToNumHashMap_wxImplementation_HashTable::DeleteNode(_wxHashTable_NodeBase*)' from file '/Users/admin/Documents/_builds/obj/release64/main/ds/wxMainDll/CreateNewDatabaseDlg.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.|
I doubt that this warning message has anything to do with the wxPdfDocument library itself. The final sentence in the warning message gives you a hint what might have gone wrong:
This was likely caused by different translation units being compiled with different visibility settings.
That is, either the wxWidgets library or your own application was built with compiler settings differing from those used for compiling wxPdfDocument.
cutecode wrote: ↑Tue Mar 05, 2019 7:21 pm
If I link dynemically then I don't get this message
In both cases I can create PDF files as I expected
Is there somesing awfull in this message?
Most likely your application will not experience major problems. However, usually it is a good idea to resolve such issues as they might cause difficulties later on. That is, you should carefully check that all components of your application are built using the same set of compiler options.
The configure script of wxPdfDocument does not support the full set of options that the wxWidgets configure script offers. The reason is that the wxPdfDocument configure script uses wx-config to find out the options used to build wxWidgets. If you have more than one wxWidgets build it may be necessary to specify which wxWidgets installation you intend to use. That is, you may have to use one or more of the wx specific options (i.e. --with-wx-prefix). Execute