listwidget.cpp:169: error: no matching function for call to

For code related discussions and questions
Post Reply
thuoeg
New user
Posts: 2
Joined: 16 May 2013, 12:04

listwidget.cpp:169: error: no matching function for call to

Post by thuoeg » 16 May 2013, 12:22

Hi,I download the Master branch on 17 April 2013 and tried to compile it but I get this error:

listwidget.cpp: In member function ‘virtual void ListWidget::widgetLost(WIDGET*)’:
listwidget.cpp:169: error: no matching function for call to ‘find(__gnu_cxx::__normal_iterator > >, gnu_cxx::normal_iterator > >, WIDGET*&)’


which point to this commit:
https://github.com/Warzone2100/warzone2 ... 1e7875fc12

To the Little knowledge I know on C++ tells me everything is fine. Here are my details:

OS: Linux mint 10 julia
GCC version: gcc (Debian 4.4.5-8) 4.4.5
G++ version: g++ (Debian 4.4.5-8) 4.4.5

The output of ./configure:

Code: Select all

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
checking for gcc... ccompiler
checking for ranlib... ranlib
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for g++... cxxcompiler
checking whether perl executable path has been provided... no
checking for perl... /usr/bin/perl
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for perl version... 5.10.1
checking for gawk... (cached) gawk
checking for zip... zip
checking for unzip... unzip
checking for a2x... a2x
checking for wkhtmltopdf... wkhtmltopdf
checking for pdflatex... pdflatex
checking for hevea... no
checking for hacha... no
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define EXTENSIONS... yes
./configure: line 6030: AX_C___BUILTIN_EXPECT: command not found
checking for strlcpy... no
checking for strlcat... no
checking whether gcc -std=gnu99 accepts -fstack-protector... yes
checking whether g++ accepts -fstack-protector... yes
checking alloca.h usability... yes
checking alloca.h presence... yes
checking for alloca.h... yes
checking sys/ucontext.h usability... yes
checking sys/ucontext.h presence... yes
checking for sys/ucontext.h... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for pkg-config >= 0.9... found 0.25, ok
checking for backend... SDL
checking for QT4... yes
checking for moc-qt4... /usr/bin/moc-qt4
checking for uic-qt4... /usr/bin/uic-qt4
checking for rcc-qt4... no
checking for rcc... /usr/bin/rcc
checking for X... libraries , headers
checking whether to build NSIS installer... no
checking whether to compile in debug mode... yes
checking whether the C compiler accepts the -Werror -Wno-switch flag... yes
checking whether the C compiler accepts the -Werror -Wno-enum-compare flag... no
checking for SDL... yes
checking for PNG... yes
checking for THEORA... yes
checking for OPENAL... yes
checking for VORBIS... yes
checking for VORBISFILE... yes
checking for GLEW... yes
checking for nearbyint in -lm... yes
checking physfs.h usability... yes
checking physfs.h presence... yes
checking for physfs.h... yes
checking for PHYSFS_mount in -lphysfs... yes
checking X11/extensions/Xrandr.h usability... yes
checking X11/extensions/Xrandr.h presence... yes
checking for X11/extensions/Xrandr.h... yes
checking for main in -lGL... yes
checking for main in -lGLU... yes
checking for the pthreads library -lpthreads... no
checking for the pthreads library -lpthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for cc_r... gcc -std=gnu99
checking for thread local storage (TLS) class... __thread
checking for FRIBIDI... yes
checking for FREETYPE... yes
checking for FTC_Manager_New in -lfreetype... yes
checking for FONTCONFIG... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating po/Makefile.in
config.status: creating doc/Makefile
config.status: creating icons/Makefile
config.status: creating data/Makefile
config.status: creating data/music/Makefile
config.status: creating pkg/nsis/Makefile
config.status: creating win32/Makefile
config.status: creating tests/Makefile
config.status: creating 3rdparty/miniupnpc/Makefile
config.status: creating 3rdparty/quesoglc/Makefile
config.status: creating lib/framework/Makefile
config.status: creating lib/exceptionhandler/Makefile
config.status: creating lib/gamelib/Makefile
config.status: creating lib/ivis_opengl/Makefile
config.status: creating lib/netplay/Makefile
config.status: creating lib/qtgame/Makefile
config.status: creating lib/sdl/Makefile
config.status: creating lib/script/Makefile
config.status: creating lib/sequence/Makefile
config.status: creating lib/sound/Makefile
config.status: creating lib/widget/Makefile
config.status: creating tools/map/Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
configure:
configure: *** Running in debug mode! ***
configure:
configure: WARNING: Distributor unknown!
configure: Use --with-distributor when compiling package for distribution
configure:
configure: Backend used: sdl
PS: If I've posted this at the wrong place, please advice

Please help.

Thanks
Last edited by Staff on 07 Jun 2013, 03:20, edited 1 time in total.
Reason: Add code tags

User avatar
Ezio
Trained
Trained
Posts: 305
Joined: 24 Apr 2010, 16:42

Re: listwidget.cpp:169: error: no matching function for call

Post by Ezio » 16 May 2013, 13:36

why not download latest one since it should be fixed
Image
Please Read FAQ, Dev Wiki and Search forum for same post before posting

cybersphinx
Inactive
Inactive
Posts: 1691
Joined: 01 Sep 2006, 19:17

Re: listwidget.cpp:169: error: no matching function for call

Post by cybersphinx » 16 May 2013, 14:35

thuoeg wrote:GCC version: gcc (Debian 4.4.5-8) 4.4.5
G++ version: g++ (Debian 4.4.5-8) 4.4.5
You might need a newer g++.
We want information... information... information.

thuoeg
New user
Posts: 2
Joined: 16 May 2013, 12:04

Re: listwidget.cpp:169: error: no matching function for call

Post by thuoeg » 04 Jun 2013, 19:14

Hi, I tried the above suggestion and I still get the error.Download a fresh copy of Master.zip and upgraded my gcc and g++ versions to: gcc (Debian 4.7.2-5) 4.7.2

Perseus
Trained
Trained
Posts: 56
Joined: 09 Oct 2010, 22:25

Re: listwidget.cpp:169: error: no matching function for call

Post by Perseus » 06 Jun 2013, 23:44

cybersphinx wrote:
thuoeg wrote:GCC version: gcc (Debian 4.4.5-8) 4.4.5
G++ version: g++ (Debian 4.4.5-8) 4.4.5
You might need a newer g++.
I'm getting the same error (using gcc/g++ version 4.5), what version of gcc & g++ does buildbot use to compile?

User avatar
Staff
Global Moderator
Global Moderator
Posts: 387
Joined: 27 May 2011, 04:08

Re: listwidget.cpp:169: error: no matching function for call

Post by Staff » 07 Jun 2013, 03:19

It works with these:
gcc --version
gcc (Debian 4.7.3-4) 4.7.3

g++ --version
g++ (Debian 4.7.3-4) 4.7.3
Sorry, this account has been deactivated.
Please post issues in Website feedback instead, only Moderators can read things there.

Post Reply