Thread
:
ISO C++ forbids declaration
View Single Post
Lullen
2010-06-02 , 13:15
Posts: 289 | Thanked: 101 times | Joined on Oct 2009
#
4
slim/usr/include -I/usr/include -IC:/NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-1014-slim/usr/include/phonon_compat -I. -o main.o main.cpp
In file included from infowindow.h:6,
from listwindow.h:6,
from weightwindow.h:6,
from startwindow.h:6,
from main.cpp:2:
historywindow.h:15: error: ISO C++ forbids declaration of 'ListWindow' with no type
historywindow.h:15: error: expected ';' before '*' token
make: Leaving directory `/c/NokiaQtSDK/QtCreator/bin/qexercise'
make: *** [main.o] Error 1
Exited with code 2.
Error while building project qexercise (target: Maemo)
When executing build step 'Make'
If I remove #include "listwindow.h" it says the same thing as before. If I move ListWindow *lw to the cpp file the error disapears, at least it was like that the last time...
Quote & Reply
|
Lullen
View Public Profile
Send a private message to Lullen
Find all posts by Lullen