visual c++ - wxString Printf function issues in linux -


i trying print data in wxstring using printf function crashing in run time in linux not in windows

here code:

wxstring str1,str2; str1 = "elements"; str2.printf( _u("%s"),str1); 

this working in windows not in linux , if change below working in linux also

str2.printf( _u("%s"),str1.c_str()); 

why not taking str1 argument.

note:this sentence using throughout workspace there common way in linux instead of changing in places

the "fix" upgrade wxwidgets 3.0 wxstring::printf() , other similar functions (pseudo) variadic templates , work correctly objects , not raw pointers. in wxwidgets 2.8 variadic functions and, according language rules, can't work objects , no, there no way around this.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -