Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] cdt parsing errors incorrectly

I'm not sure if this is the correct list, but currently I'm having a problem where cdt is parsing gcc's error messages incorrectly. I just installed gcc and cdt with no distro mods today.

My project is a standard make project with a custom root. In the error list my errors show up like this "../Client/GraphicsManager.h error: expected ';' before '*' token" starting with a path. If I click properties the line number is specified correctly. The problem is that the *path* property is blank. Instead the path seems to be dumped as part of the error message. I don't know if including the path in the error message is standard, but not including it in the path property is certainly a problem for me as I can't jump to my errors.

My gcc output looks like this:
if g++ -DPACKAGE_NAME=\"BubbleWar\" -DPACKAGE_TARNAME=\"bubblewar\" -DPACKAGE_VERSION=\"0.9.0\ \" -DPACKAGE_STRING=\"BubbleWar\ 0.9.0\ \" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"BubbleWar\" -DVERSION=\" 0.9.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1  -I. -I. -I .. -I /usr/local/include/OGRE -I /usr/local/include/RakNet  -I /usr/local/include/fmod -I /usr/local/include/CEGUI   -g -Wuninitialized -Wextra -Wno-pragmas -Wno-deprecated -g -O2 -MT ServerClient.o -MD -MP -MF ".deps/ServerClient.Tpo" -c -o ServerClient.o ServerClient.cpp; \
    then mv -f ".deps/ServerClient.Tpo" ".deps/ServerClient.Po"; else rm -f ".deps/ServerClient.Tpo"; exit 1; fi
/usr/local/include/OGRE/OgreUTFString.h: In copy constructor 'Ogre::UTFString::_fwd_iterator::_fwd_iterator(const Ogre::UTFString::_fwd_iterator&)':
/usr/local/include/OGRE/OgreUTFString.h:290: warning: base class 'class Ogre::UTFString::_base_iterator' should be explicitly initialized in the copy constructor
/usr/local/include/OGRE/OgreUTFString.h: In copy constructor 'Ogre::UTFString::_const_fwd_iterator::_const_fwd_iterator(const Ogre::UTFString::_const_fwd_iterator&)':
/usr/local/include/OGRE/OgreUTFString.h:421: warning: base class 'class Ogre::UTFString::_base_iterator' should be explicitly initialized in the copy constructor
/usr/local/include/OGRE/OgreUTFString.h: In copy constructor 'Ogre::UTFString::_rev_iterator::_rev_iterator(const Ogre::UTFString::_rev_iterator&)':
/usr/local/include/OGRE/OgreUTFString.h:569: warning: base class 'class Ogre::UTFString::_base_iterator' should be explicitly initialized in the copy constructor
/usr/local/include/OGRE/OgreUTFString.h: In copy constructor 'Ogre::UTFString::_const_rev_iterator::_const_rev_iterator(const Ogre::UTFString::_const_rev_iterator&)':
/usr/local/include/OGRE/OgreUTFString.h:678: warning: base class 'class Ogre::UTFString::_base_iterator' should be explicitly initialized in the copy constructor
/usr/local/include/OGRE/OgreInputEvent.h: At global scope:
/usr/local/include/OGRE/OgreInputEvent.h:78: error: ISO C++ forbids declaration of 'EventTarget' with no type
/usr/local/include/OGRE/OgreInputEvent.h:78: error: expected ';' before '*' token
/usr/local/include/OGRE/OgreInputEvent.h:137: error: expected `)' before '*' token
/usr/local/include/OGRE/OgreInputEvent.h:184: error: ISO C++ forbids declaration of 'EventTarget' with no type
/usr/local/include/OGRE/OgreInputEvent.h:184: error: expected ';' before '*' token
/usr/local/include/OGRE/OgreMouseEvent.h:236: error: expected `)' before '*' token
/usr/local/include/OGRE/OgreMouseEvent.h:239: error: expected `)' before '*' token
/usr/local/include/OGRE/OgreEventListeners.h:104: error: 'KeyEvent' has not been declared
/usr/local/include/OGRE/OgreEventListeners.h:108: error: 'KeyEvent' has not been declared
/usr/local/include/OGRE/OgreEventListeners.h:112: error: 'KeyEvent' has not been declared
/usr/local/include/OGRE/OgreEventListeners.h:116: error: 'KeyEvent' has not been declared
/usr/local/include/OGRE/OgreEventListeners.h:120: error: 'KeyEvent' has not been declared
/usr/local/include/OGRE/OgreKeyEvent.h:85: error: expected `)' before '*' token

Is my gcc output format incorrectly configured? What flags do I need to set to get the proper output from gcc that cdt can parse into an error message.

Thank you.

Back to the top