Skip to content
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

Open
odessky opened this issue Aug 26, 2012 · 3 comments

Comments

@odessky
Copy link

odessky commented Aug 26, 2012

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

@Squirtle
Copy link
Owner

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.
I will add this requirement to the readme.

@odessky
Copy link
Author

odessky commented Aug 27, 2012

My distro is not have this gcc version for update. The last version is gcc 4.4.3
Can you add fixes for this version?

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: 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

@Squirtle
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants