cannot pass objects of non-POD type

Carlos Rodriguez Llodrá carlos at crod.dyns.cx
Tue Dec 11 14:13:37 PST 2007


Hi

that's because file.GetSize() is returning a 64 bit *integer* when 
compiled with Visual Studio, but a wxULongLong *object* when compiled 
with Mingw.

But I'm not using Mingw for a long time, so I don't know if it (still?) 
does not support 64 bit integers, sorry.

Carlos.


Eirik Nesje escribió:
> 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
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
> 
> 




More information about the wx-users mailing list