[prev in list] [next in list] [prev in thread] [next in thread]
List: gnuplot-info-beta
Subject: Re: wxterminal compilation
From: Timothée Lecomte <timothee.lecomte () ens ! fr>
Date: 2006-07-15 3:49:23
Message-ID: 44B881E3.2040603 () ens ! fr
[Download RAW message or body]
Hi James,
James R. Van Zandt wrote:
> Here, wxterminal compilation fails as follows:
>
> Script started on Fri Jul 14 21:49:29 2006
> vanzandt:/usr/local/src/gnuplot/cvs/gnuplot$ make
>
> (...)
> if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../term -I../term \
> -DBINDIR=\"/usr/local/bin\" -DX11_DRIVER_DIR=\"/usr/local/libexec/gnuplot/4.1\" \
> -DGNUPLOT_PS_DIR=\"/usr/local/share/gnuplot/4.1/PostScript\" \
> -DCONTACT=\"gnuplot-bugs@lists.sourceforge.net\" \
> -DHELPFILE=\"/usr/local/share/gnuplot/4.1/gnuplot.gih\" -DPREFIX=\"/usr/local\" \
> -DVERSION_MAJOR=\"4.1\" -I/usr/X11R6/include -I/usr/include -I/usr/include/cairo \
> -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g \
> -O2 -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 \
> -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES \
> -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -I/usr/include/cairo \
> -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -MT \
> wxt_gui.o -MD -MP -MF ".deps/wxt_gui.Tpo" -c -o wxt_gui.o `test -f \
> 'wxterminal/wxt_gui.cpp' || echo './'`wxterminal/wxt_gui.cpp; \
My g++ command looks the same.
> then mv -f ".deps/wxt_gui.Tpo" ".deps/wxt_gui.Po"; else rm -f ".deps/wxt_gui.Tpo"; \
> exit 1; fi
> In file included from \
> /usr/lib/gcc/i486-linux-gnu/4.0.4/../../../../include/c++/4.0.4/ext/new_allocator.h:37,
>
> (...)
>
> ../new:1: error: stray '@' in program
>
Hmm, as you said below, these @ are in comments, they are used for
source documentation (doxygen or similar).
How can they appear in the compilation ???
> In file included from \
> /usr/lib/gcc/i486-linux-gnu/4.0.4/../../../../include/c++/4.0.4/bits/stl_construct.h:65,
>
> from /usr/lib/gcc/i486-linux-gnu/4.0.4/../../../../include/c++/4.0.4/memo
> ...
> <~800 lines omitted>
> ...
>
> /usr/lib/gcc/i486-linux-gnu/4.0.4/../../../../include/c++/4.0.4/bits/stl_list.h:571: \
> error: return type 'class std::allocator<gp_command>' is incomplete
> /usr/lib/gcc/i486-linux-gnu/4.0.4/../../../../include/c++/4.0.4/bits/stl_list.h: In \
> member function 'std::_List_node<_Tp>* std::_List_base<_Tp, _Alloc>::_M_get_node() \
> [with _Tp = gp_event_t, _Alloc = std::allocator<gp_event_t>]':
> /usr/lib/gcc/i486-linux-gnu/4.0.4/../../../../include/c++/4.0.4/bits/stl_list.h:438: \
> instantiated from 'std::_List_node<_Tp>* std::list<_Tp, \
> _Alloc>::_M_create_node(const _Tp&) [with _Tp = gp_event_t, _Alloc = \
> std::allocator<gp_event_t>]'
> /usr/lib/gcc/i486-linux-gnu/4.0.4/../../../../include/c++/4.0.4/bits/stl_list.h:1152: \
> instantiated from 'void std::list<_Tp, _Alloc>::_M_insert(std::_List_iterator<_Tp>, \
> const _Tp&) [with _Tp = gp_event_t, _Alloc = \
> std::allocator<gp_event_t>]'
> /usr/lib/gcc/i486-linux-gnu/4.0.4/../../../../include/c++/4.0.4/bits/stl_list.h:774: \
> instantiated from 'void std::list<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp = \
> gp_event_t, _Alloc = std::allocator<gp_event_t>]' wxterminal/wxt_gui.cpp:2661: \
> instantiated from here
> /usr/lib/gcc/i486-linux-gnu/4.0.4/../../../../include/c++/4.0.4/bits/stl_list.h:313: \
> error: invalid use of undefined type 'class \
> std::allocator<gp_event_t>'
> /usr/lib/gcc/i486-linux-gnu/4.0.4/../../../../include/c++/4.0.4/bits/stringfwd.h:49: \
> error: declaration of 'class std::allocator<gp_event_t>'
> /usr/lib/gcc/i486-linux-gnu/4.0.4/../../../../include/c++/4.0.4/bits/stl_list.h:313: \
> error: '<declaration error>' is not a class or namespace
Hmm (again).
I am far from being a C++ specialist, but I am using very basic features
of the STL (standard template library), namely the template list<>,
which implements a linked list.
Looks like your g++ installation has problems.
> This is with a recent compiler:
> $ gcc --version
> gcc (GCC) 4.0.4 20060422 (prerelease) (Debian 4.0.3-2)
> Copyright (C) 2006 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> ...so maybe it's being more strict about the language. However, "make
> CC=gcc-3.3" fails the same way.
>
I am using "stock" gcc-4.0.3, maybe Debian is patching it with something
wrong... I don't really know...
> FWIW I think it's complaining about /usr/include/c++/4.0.4/new, but all
> the "@" characters appear to be in comments:
>
Yes, that's a bad sign to see failures there !
Are you using some sort of bleeding-edge repository ? I am sorry, but I
have no clue where it might come from. And google doesn't help here. I
will try to ask on irc...
Best regards,
Timothée
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
gnuplot-beta mailing list
gnuplot-beta@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic