anoopmj
30th June 2010, 16:14
Hi Guys,
I tried asking this in the newbie section, but no one had an answer.. :(
I am new to Qt and have been trying to compile a program which works on linux and windows on a mac. Unfortunately while doing so, I get the following error:
"typeinfo for std::bad_alloc", referenced from:
__ZTISt9bad_alloc$non_lazy_ptr in CConfigHandler.o
(maybe you meant: __ZTISt9bad_alloc$non_lazy_ptr)
I traced this back to the following lines in the file qvector.h inside qt framework:
QT_CATCH (const std::bad_alloc &) {
if (aalloc > d->alloc) // ignore the error in case we are just shrinking.
QT_RETHROW;
I don't understand why qt itself is giving this error.. if I understand right, this error is only on a mac, and is due to the pointer not being linked.
Any suggestions?
I tried asking this in the newbie section, but no one had an answer.. :(
I am new to Qt and have been trying to compile a program which works on linux and windows on a mac. Unfortunately while doing so, I get the following error:
"typeinfo for std::bad_alloc", referenced from:
__ZTISt9bad_alloc$non_lazy_ptr in CConfigHandler.o
(maybe you meant: __ZTISt9bad_alloc$non_lazy_ptr)
I traced this back to the following lines in the file qvector.h inside qt framework:
QT_CATCH (const std::bad_alloc &) {
if (aalloc > d->alloc) // ignore the error in case we are just shrinking.
QT_RETHROW;
I don't understand why qt itself is giving this error.. if I understand right, this error is only on a mac, and is due to the pointer not being linked.
Any suggestions?