[Qt-interest] getting parse error std in stringfwd
Mic J
michael.cognacc at gmail.com
Mon Apr 25 12:18:41 CEST 2011
Hi when playing around with qt and using stl and an external library
in qtcreator (lemon graph library)
I suddenly get parse error at std;
usr/include/c++/4.6.0/bits/stringfwd.:43: error: Parse error at "std"
Yes in the error messge the leading slash is missing (compile output
form qtcreator)
Everything normally works, but suddenly i get this error and can't do anything.
I have found that doing a "make distclean" && qmake -project && qmake && make
Fixes the problem, but it is annoying that is seems to appear out of the blue.
It might have something to with running to instances of qtcreator.?
Since that twice (today) i had it happening about the time i looked
through some example code in another instance of qtcreator?
I don't know.
Any suggestions?
Here is my .pro file don't know it it helps, let me know if you want
to see something from the project (.pro.user)?
ps LIBS and includepath i added myself, but is that the right way?
(via teteditor)
-------
TEMPLATE = app
TARGET =
DEPENDPATH += .
INCLUDEPATH += .
LIBS += -L /usr/local/lib -lemon
INCLUDEPATH += -I /usr/include/c++/4.6.0
INCLUDEPATH += -I /usr/local/include
# Input
HEADERS += algobase0.hpp \
edge.hpp \
graph.hpp \
graphetalgorithms.hpp \
graphetinterface.hpp \
graphinternal1.hpp \
operations.hpp \
vertex.hpp
SOURCES += algobase0.cpp \
edge.cpp \
graph.cpp \
graphetalgorithms.cpp \
graphetinterface.cpp \
graphinternal1.cpp \
main.cpp \
operations.cpp \
vertex.cpp
RESOURCES += graph_et_resources.qrc
OTHER_FILES += \
qss/stylesheet.qss
------
regards michael
More information about the Qt-interest-old
mailing list