#4580: warzone2100-3.2.3: compile issue
------------------------------------+-------------------------
Reporter: Polynomial-C | Owner:
Type: bug | Status: new
Priority: normal | Milestone: unspecified
Component: other | Version: 3.2.3
Operating System: GNU/Linux 64bit |
------------------------------------+-------------------------
Hi,
trying to compile warzone2100-3.2.3 on my Gentoo Linux box results in the
following error:
{{{
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../..
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DNDEBUG
-DWZ_DATADIR="\"/usr/share/warzone2100\""
-DLOCALEDIR="\"/usr/share/locale\"" -I../.. -I../../3rdparty
-I/usr/include/qt5/QtScript -I/usr/include/qt5 -I/usr/include/qt5/QtOpenGL
-I/usr/include/qt5 -I/usr/include/qt5/QtWidgets -I/usr/include/qt5
-I/usr/include/qt5/QtX11Extras -I/usr/include/qt5 -I/usr/include/qt5/QtGui
-I/usr/include/qt5 -I/usr/include/qt5/QtCore -I/usr/include/qt5
-I/usr/include/libdrm -g -Wno-enum-compare -Wall -Wextra -Wno-unused-
parameter -Wno-sign-compare -Wcast-align -Wwrite-strings -Wpointer-arith
-Wno-format-security -I/usr/include/harfbuzz -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -I/usr/include/freetype2
-I/usr/include/harfbuzz -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -I/usr/include/qt5/QtScript
-I/usr/include/qt5 -I/usr/include/qt5/QtOpenGL -I/usr/include/qt5
-I/usr/include/qt5/QtWidgets -I/usr/include/qt5
-I/usr/include/qt5/QtX11Extras -I/usr/include/qt5 -I/usr/include/qt5/QtGui
-I/usr/include/qt5 -I/usr/include/qt5/QtCore -I/usr/include/qt5
-march=native -mtune=native -O2 -pipe -fPIC -std=c++11 -fstack-protector
-c -o wzapp_qt.o wzapp_qt.cpp
wzapp_qt.cpp: In member function ‘virtual void
WzMainWindow::mouseMoveEvent(QMouseEvent*)’:
wzapp_qt.cpp:323:45: error: ‘clip’ was not declared in this scope
mouseXPos = clip(event->x(), 0, width() - 1);
^
make[2]: *** [Makefile:466: wzapp_qt.o] Error 1
}}}
This does not happen with warzone2100-3.2.2
--
Ticket URL: <http://developer.wz2100.net/ticket/4580>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Warzone2100-project mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/warzone2100-project