[opensuse] STL c++ - what is wrong with private declaration 'void addSources(const std::list<Source*>& inList);'
c++ gurus, All, I am having fits with a new gcc'ism (4.7.1) throwing and error on a STL declaration that I cannot figure out. The source is TDE/kima and the error is: In file included from kima.moc.cpp:9:0: ./kima.h:179:24: error: 'list' in namespace 'std' does not name a type ./kima.h:179:29: warning: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive] ./kima.h:179:33: error: expected ',' or '...' before '<' token I have put the header file up at: http://www.3111skyline.com/dl/dt/tde/err/kima/kima.h.txt The primary "error: 'list' in namespace 'std' does not name a type" seems like it would have an easy fix of the type http://www.cplusplus.com/forum/beginner/51696/ but it is already in the proper form/syntax/semantics, etc.. The error implies that somehow that list isn't namespace qualified, but it is. It is like gcc/glibc doesn't know what a STL list is any more. Anybody have a take on this one. It's probably simple, but I can't find it :) -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 07/19/2012 11:15 PM, David C. Rankin wrote:
Anybody have a take on this one. It's probably simple, but I can't find it :)
It was, gcc 4.7.1 is persnickety regarding implicit declarations and other semantics. Suffice it to say, a simple #include <list> solved the problem... -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (1)
-
David C. Rankin