octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Patch to Octave header file for octavede [Was Re: Octave-maintainers Dig


From: John Swensen
Subject: Patch to Octave header file for octavede [Was Re: Octave-maintainers Digest, Vol 7, Issue 7 ]
Date: Wed, 04 Oct 2006 22:19:01 -0400
User-agent: Thunderbird 3.0a1 (Macintosh/20061002)

Oh, I remember this problem, but I'm not 100% sure why it happens. To solve it, open the file

/usr/include/octave-2.9.8+/octave/Array.h

And go to the line where the error is (567 or 569) and change the function call 
from

return assign (lhs, rhs, resize_fill_value (LT ()));

to

return ::assign (lhs, rhs, resize_fill_value (LT ()));


This has something to do with the fact that the array class has an assign() function, but it has different parameters than those specified in this function call. Instead it should look for the STL supplied assign and the :: with no class name in front of it implies the STL one (I think that is what it does).

Either way, I don't think you need to recompile Octave, just change the header file. One of the other maintainers can verify that using the STL assign was the intended function call?!?!

John Swensen


Muthiah Annamalai wrote:
Hello John,
Great package. Didnt actually get to try it yet. The screenshots look really nice.

I have attached the error message I got while building the code on
GNU/Linux with Ubuntu. Am I doing something wrong?

Thanks,
-Muthu




------------------------------------------------------------------------

checking whether make sets $(MAKE)... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for DEPS... yes
checking for mkoctfile... mkoctfile
mkoctfile
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 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 ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for egrep... 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 pty.h usability... yes
checking pty.h presence... yes
checking for pty.h... yes
checking util.h usability... no
checking util.h presence... no
checking for util.h... no
checking libutil.h usability... no
checking libutil.h presence... no
checking for libutil.h... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
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 a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
config.status: creating ui/Makefile
config.status: executing depfiles commands
MuthuRocks @ /opt/octavede ]make
Making all in ui
make[1]: Entering directory `/opt/octavede/ui'
if g++ -DPACKAGE_NAME=\"OctaveUI\" -DPACKAGE_TARNAME=\"octaveui\" -DPACKAGE_VERSION=\"0.1\" -DPACKAGE_STRING=\"OctaveUI\ 
0.1\" -DPACKAGE_BUGREPORT=\"John\ Swensen\ \<address@hidden>\" -DPACKAGE=\"octaveui\" -DVERSION=\"0.1\" -DSTDC_HEADERS=1 
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 
-DHAVE_UNISTD_H=1 -DHAVE_PTY_H=1  -I. -I. -DORBIT2=1 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtkmm-2.4 
-I/usr/lib/gtkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include -I/usr/include/pangomm-1.4 
-I/usr/include/atkmm-1.6 -I/usr/include/gtk-2.0 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 
-I/usr/include/cairo -I/usr/include/atk-1.0 -I/usr/include/libgnomeprintui-2.2 -I/usr/include/libgnomeprint-2.2 -I/usr/include/libgnomecanvas-2.0 
-I/usr/include/libart-2.0 -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/gtksourceview-1.0 -I/usr/include/libgdl-1.0 -I/usr/include/libbonoboui-2.0 
-I/usr/include/libgnome-2.0 -I/usr/include/libglade-2.0 -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 
-I/usr/include/gconf/2 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include   `mkoctfile -p FPICFLAG` `mkoctfile -p INCFLAGS` `mkoctfile -p XTRA_CXXFLAGS` 
-I../../OctaveMods       -g -O2 -MT GdlDockContainer.o -MD -MP -MF ".deps/GdlDockContainer.Tpo" -c -o GdlDockContainer.o GdlDockContainer.cpp; \
        then mv -f ".deps/GdlDockContainer.Tpo" ".deps/GdlDockContainer.Po"; else rm -f 
".deps/GdlDockContainer.Tpo"; exit 1; fi
if g++ -DPACKAGE_NAME=\"OctaveUI\" -DPACKAGE_TARNAME=\"octaveui\" -DPACKAGE_VERSION=\"0.1\" -DPACKAGE_STRING=\"OctaveUI\ 
0.1\" -DPACKAGE_BUGREPORT=\"John\ Swensen\ \<address@hidden>\" -DPACKAGE=\"octaveui\" -DVERSION=\"0.1\" -DSTDC_HEADERS=1 
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 
-DHAVE_UNISTD_H=1 -DHAVE_PTY_H=1  -I. -I. -DORBIT2=1 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtkmm-2.4 
-I/usr/lib/gtkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include -I/usr/include/pangomm-1.4 
-I/usr/include/atkmm-1.6 -I/usr/include/gtk-2.0 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 
-I/usr/include/cairo -I/usr/include/atk-1.0 -I/usr/include/libgnomeprintui-2.2 -I/usr/include/libgnomeprint-2.2 -I/usr/include/libgnomecanvas-2.0 
-I/usr/include/libart-2.0 -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/gtksourceview-1.0 -I/usr/include/libgdl-1.0 -I/usr/include/libbonoboui-2.0 
-I/usr/include/libgnome-2.0 -I/usr/include/libglade-2.0 -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 
-I/usr/include/gconf/2 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include   `mkoctfile -p FPICFLAG` `mkoctfile -p INCFLAGS` `mkoctfile -p XTRA_CXXFLAGS` 
-I../../OctaveMods       -g -O2 -MT GdlDockPane.o -MD -MP -MF ".deps/GdlDockPane.Tpo" -c -o GdlDockPane.o GdlDockPane.cpp; \
        then mv -f ".deps/GdlDockPane.Tpo" ".deps/GdlDockPane.Po"; else rm -f 
".deps/GdlDockPane.Tpo"; exit 1; fi
if g++ -DPACKAGE_NAME=\"OctaveUI\" -DPACKAGE_TARNAME=\"octaveui\" -DPACKAGE_VERSION=\"0.1\" -DPACKAGE_STRING=\"OctaveUI\ 
0.1\" -DPACKAGE_BUGREPORT=\"John\ Swensen\ \<address@hidden>\" -DPACKAGE=\"octaveui\" -DVERSION=\"0.1\" -DSTDC_HEADERS=1 
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 
-DHAVE_UNISTD_H=1 -DHAVE_PTY_H=1  -I. -I. -DORBIT2=1 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtkmm-2.4 
-I/usr/lib/gtkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include -I/usr/include/pangomm-1.4 
-I/usr/include/atkmm-1.6 -I/usr/include/gtk-2.0 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 
-I/usr/include/cairo -I/usr/include/atk-1.0 -I/usr/include/libgnomeprintui-2.2 -I/usr/include/libgnomeprint-2.2 -I/usr/include/libgnomecanvas-2.0 
-I/usr/include/libart-2.0 -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/gtksourceview-1.0 -I/usr/include/libgdl-1.0 -I/usr/include/libbonoboui-2.0 
-I/usr/include/libgnome-2.0 -I/usr/include/libglade-2.0 -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 
-I/usr/include/gconf/2 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include   `mkoctfile -p FPICFLAG` `mkoctfile -p INCFLAGS` `mkoctfile -p XTRA_CXXFLAGS` 
-I../../OctaveMods       -g -O2 -MT HistoryTreeView.o -MD -MP -MF ".deps/HistoryTreeView.Tpo" -c -o HistoryTreeView.o HistoryTreeView.cpp; \
        then mv -f ".deps/HistoryTreeView.Tpo" ".deps/HistoryTreeView.Po"; else rm -f 
".deps/HistoryTreeView.Tpo"; exit 1; fi
/usr/include/octave-2.9.8+/octave/Array.h: In function ‘int assign(Array<LT>&, const 
Array<RT>&)’:
/usr/include/octave-2.9.8+/octave/Array.h:569: error: use of ‘assign’ is 
ambiguous
/usr/include/octave-2.9.8+/octave/Array.h:567: error:   first declared as 
‘assign’ here
/usr/include/sigc++-2.0/sigc++/adaptors/lambda/operator.h:93: error:   also 
declared as ‘struct sigc::assign’ here
make[1]: *** [HistoryTreeView.o] Error 1
make[1]: Leaving directory `/opt/octavede/ui'
make: *** [all-recursive] Error 1
MuthuRocks @ /opt/octavede ]





reply via email to

[Prev in Thread] Current Thread [Next in Thread]