cannot pass objects of non-POD type
Eirik Nesje
einesje at online.no
Tue Dec 11 13:31:19 PST 2007
Hi
I have the following statment that works using Visual Studio 7.1 Standard :
wxSQL += wxString::Format(wxT("%d"), file.GetSize());
(wxSQL is a wxString).
But using MinGW i get this message :
*** traverseframe.h:80: warning: cannot pass objects of non-POD type
`class wxULongLong' through `...'; call will abort at runtime
Which strangly is a warning but instant terminates my application when
executing the above statement. Should I not use the format statment this
way or anyone have a hint on what to do to avoid this message ?
I'm using wxWidget 2.8.7 on windows. The compile settings are :
g++.exe -c -o MinGWUnicodeRelease/traverseapp.o -fno-rtti
-fno-pcc-struct-return -fstrict-aliasing -Wall -D__WXMSW__
-D__GNUWIN32__ -D__WIN95__ -DUNICODE -O -Wall
-I"C:/wxWidgets-2.8.7/include" -I"C:/wxWidgets-2.8.7/contrib/include"
-I"C:/wxWidgets-2.8.7/lib/gcc_lib/mswu" traverseapp.cpp
Regards
Eirik
More information about the wx-users
mailing list