New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OptionsTab.cpp: In constructor ‘OptionsTab::OptionsTab(DFManagerPtr, QWidget*) #3
Comments
Seems like you don't have a modern enough version of gcc. The project makes use of lambda functions, so you'll need at least gcc 4.5 to compile it. |
My distro is not have this gcc version for update. The last version is gcc 4.4.3 Also I fix nullptr for my gcc, but got new error: g++ -c -pipe -std=c++0x -g -D_REENTRANT -Wall -W -DQT_TESTLIB_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt4/mkspecs/linux-g++ -I. -I/usr/lib/qt4/include/QtCore -I/usr/lib/qt4/include/QtGui -I/usr/lib/qt4/include/QtTest -I/usr/lib/qt4/include -I. -I../3rdparty/qtcreator/fancywidgets -I../3rdparty/qtcreator/utils -I../3rdparty/qtilities/include -I../3rdparty/qtilities/include/QtilitiesLogging -I../3rdparty/qtilities/include/QtilitiesLogging -I../3rdparty/qtilities/include/QtilitiesCore -I../3rdparty/qtilities/include/QtilitiesLogging -I../3rdparty/qtilities/include/QtilitiesCore -I../3rdparty/qtilities/include/QtilitiesCoreGui -I/usr/include/yaml-cpp -I. -I. -o OptionsTab.o OptionsTab.cpp OptionsTab.cpp:37: error: expected primary-expression before '[' token |
I will look into adding compatibility for older versions of gcc once I have committed what I'm currently working on. (Support for graphics packs and the basis for a mod managing system.) No guarantees on this happening particularly soon, though, I will be pretty busy in the coming days. If you would rather do it yourself than wait, the work should just consist of replacing the lambda functions with code compatible with pre-C++11 compilers. |
g++ -c -pipe -std=c++0x -g -D_REENTRANT -Wall -W -DQT_TESTLIB_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt4/mkspecs/linux-g++ -I. -I/usr/lib/qt4/include/QtCore -I/usr/lib/qt4/include/QtGui -I/usr/lib/qt4/include/QtTest -I/usr/lib/qt4/include -I. -I../3rdparty/qtcreator/fancywidgets -I../3rdparty/qtcreator/utils -I../3rdparty/qtilities/include -I../3rdparty/qtilities/include/QtilitiesLogging -I../3rdparty/qtilities/include/QtilitiesLogging -I../3rdparty/qtilities/include/QtilitiesCore -I../3rdparty/qtilities/include/QtilitiesLogging -I../3rdparty/qtilities/include/QtilitiesCore -I../3rdparty/qtilities/include/QtilitiesCoreGui -I/usr/include/yaml-cpp -I. -I. -o OptionsTab.o OptionsTab.cpp
OptionsTab.cpp: In constructor 'OptionsTab::OptionsTab(DFManagerPtr, QWidget_)':
OptionsTab.cpp:37: error: expected primary-expression before '[' token
OptionsTab.cpp:37: error: expected primary-expression before ']' token
OptionsTab.cpp:41: error: expected primary-expression before '[' token
OptionsTab.cpp:41: error: expected primary-expression before ']' token
OptionsTab.cpp:42: error: expected primary-expression before '[' token
make[1]: *_* [OptionsTab.o] Error 1
The text was updated successfully, but these errors were encountered: