Peter Johann Brunner
2013-11-02 12:04:45 UTC
I have wxGtk2 on 2 computers laptop and PC.
both AMD 64Bit Athlon / Turion X2
both Suse Linux 12.1 and wx-gtk2u-2.8.12-6.1.2-x86_64 from openSUSE
gcc is also the same 4.6.2_20111026-1.1.4-x86_64 from openSUSE
but compiling programs with wxString's there is a difference:
on the PC I get warnings when passing wxString_var.c_str() as parameter
to printf:
printf("%s", wxString_var.c_str());
equally likely I get errors by initializing wxStrings with cstrings:
wxString wxString_var = "sometext";
I must initialize with _T():
wxString wxString_var = _T("sometext");
on the laptop neither of the 2 messages appear!
and the program executes normally
I think there must be some different configuration of wx on the 2 computers.
But I can find nothing: e.g. wx-config's are identical.
further difference:
transferring the executable from laptop to PC and starting it, shows:
cannot open shared obj file libwx_gtk2_richtext-2.8.so.0
transferring in the other direction works OK.
can anybody give me a hint?
thanks
Pit
both AMD 64Bit Athlon / Turion X2
both Suse Linux 12.1 and wx-gtk2u-2.8.12-6.1.2-x86_64 from openSUSE
gcc is also the same 4.6.2_20111026-1.1.4-x86_64 from openSUSE
but compiling programs with wxString's there is a difference:
on the PC I get warnings when passing wxString_var.c_str() as parameter
to printf:
printf("%s", wxString_var.c_str());
equally likely I get errors by initializing wxStrings with cstrings:
wxString wxString_var = "sometext";
I must initialize with _T():
wxString wxString_var = _T("sometext");
on the laptop neither of the 2 messages appear!
and the program executes normally
I think there must be some different configuration of wx on the 2 computers.
But I can find nothing: e.g. wx-config's are identical.
further difference:
transferring the executable from laptop to PC and starting it, shows:
cannot open shared obj file libwx_gtk2_richtext-2.8.so.0
transferring in the other direction works OK.
can anybody give me a hint?
thanks
Pit