On 07/16/2012 04:48 PM, David C. Rankin wrote:
On 07/16/2012 11:04 AM, Mag. Dr. Nikolaus Klepp wrote:
> Any of you gurus know what needs fixing at line 177. > I'll do the patch, I just need to know how to fix it :)
maybe this could help:
^^^^^^^^
At least the article is the right scope for the audience :)
Reading the example, I came up with the following patch:
--- kima/src/kima.h +++ kima/src/kima.h 2012-07-17 00:44:44.835910307 -0500 @@ -35,6 +35,9 @@ #include <tqptrlist.h> #include <tqlabel.h>
+// Namespace +using namespace std; + // Forward Declarations class FlowLayout; class KAboutApplication;
The build still failed at exactly the same point:
In file included from kima.moc.cpp:9:0: ./kima.h:180:24: error: 'list' in namespace 'std' does not name a type ./kima.h:180:29: warning: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive] ./kima.h:180:33: error: expected ',' or '...' before '<' token
The code in kima.h generating the error is:
private: /** * Adds the entries of given the STL to mSources */ 177 void addSources(const std::list<Source*>& inList);
Since this is a private: member of class Kima : public KPanelApplet, TQToolTip {, I don't know if the using namespace std; hint was the issue here. What say the experts?