Mailinglist Archive: opensuse (818 mails)

< Previous Next >
[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@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups