octave-maintainers
[Top][All Lists]
Advanced

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

Re: Complie error of gl-render.cc (MinGW build : concerning to uimenu?)


From: Kai Habel
Subject: Re: Complie error of gl-render.cc (MinGW build : concerning to uimenu?)
Date: Tue, 09 Nov 2010 20:49:14 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100914 SUSE/3.1.4 Lightning/1.0b2 Thunderbird/3.1.4

On 05.11.2010 04:25, Tatsuro MATSUOKA wrote:
Hello
--- Kai Habel wrote:
This post can be traced at
http://octave.1599824.n4.nabble.com/Complie-error-of-gl-render-cc-MinGW-build-concerning-to-uimenu-td3023073.html#a3023073

Hello Tatsuro,

this looks like name clash of "CALLBACK" to me. We use this in the enumeration in line 9387 of
graphics.h and since you are using FLTK 1.3 you include for windows the fltk header file
"Fl_Native_File_Chooser_Win32.H" where CALLBACK is used in another context. It sould be defined
in of the windows header files e.g. <windows.h>, but I have not looked it up yet.

So, in short term you could try to use fltk 1.1.10, which does not have a Native File Chooser.
In the long term we need to find another solution, since FLTK 1.3 (becoming FLTK 1.4 sometimes)
has some nice widget we could use (like this native file chooser). We could rename our
enumeration to something like OCT_CALLBACK, OCT_FOREGROUNDCOLOR or something else ... .

Thank you for your comments. I have uninstall the FLTK1-1.3 and install FLTK-1.1.
And try to build again. Hmmm at the moment I have not seen error message difference in detail but at
least message are the similar to those in the previous reports.

Regards

Tatsuro

***************

/bin/sh ../libtool --tag=CXX --mode=compile g++ -shared-libgcc -DHAVE_CONFIG_H -I.
-I../../../hg/octave-work/src -I.. -I/c/Programs/gpnewlib/include -I/c/Programs/OctaveLibs/include
-I/GnuWin32/include -I../libgnu -I../../../hg/octave-work/libgnu
-I../../../hg/octave-work/libcruft/misc -I../liboctave -I../../../hg/octave-work/liboctave -I.
-I../../../hg/octave-work/src -I/c/Programs/gpnewlib/include -I/c/Programs/OctaveLibs/include
-I/GnuWin32/include -O3 -DHAVE_CONFIG_H -mieee-fp -IC:/Programs/GnuWin32/include
-Ic:/Programs/gpnewlib/include/freetype2 -Ic:/Programs/gpnewlib/include -IC:/Programs/gpnewlib/include
-Wall -W -Wshadow -Wold-style-cast -Wformat -O3 -O3 -MT liboctinterp_la-file-io.lo -MD -MP -MF
.deps/liboctinterp_la-file-io.Tpo -c -o liboctinterp_la-file-io.lo `test -f 'file-io.cc' || echo
'../../../hg/octave-work/src/'`file-io.cc
libtool: compile: g++ -shared-libgcc -DHAVE_CONFIG_H -I. -I../../../hg/octave-work/src -I..
-I/c/Programs/gpnewlib/include -I/c/Programs/OctaveLibs/include -I/GnuWin32/include -I../libgnu
-I../../../hg/octave-work/libgnu -I../../../hg/octave-work/libcruft/misc -I../liboctave
-I../../../hg/octave-work/liboctave -I. -I../../../hg/octave-work/src -I/c/Programs/gpnewlib/include
-I/c/Programs/OctaveLibs/include -I/GnuWin32/include -O3 -DHAVE_CONFIG_H -mieee-fp
-IC:/Programs/GnuWin32/include -Ic:/Programs/gpnewlib/include/freetype2 -Ic:/Programs/gpnewlib/include
-IC:/Programs/gpnewlib/include -Wall -W -Wshadow -Wold-style-cast -Wformat -O3 -O3 -MT
liboctinterp_la-file-io.lo -MD -MP -MF .deps/liboctinterp_la-file-io.Tpo -c
../../../hg/octave-work/src/file-io.cc -DDLL_EXPORT -DPIC -o .libs/liboctinterp_la-file-io.o
In file included from ../../../hg/octave-work/src/file-io.cc:77:0:
../../../hg/octave-work/src/variables.h:106:40: warning: use of old-style cast
../../../hg/octave-work/src/variables.h:106:65: warning: use of old-style cast
mv -f .deps/liboctinterp_la-file-io.Tpo .deps/liboctinterp_la-file-io.Plo
/bin/sh ../libtool --tag=CXX --mode=compile g++ -shared-libgcc -DHAVE_CONFIG_H -I.
-I../../../hg/octave-work/src -I.. -I/c/Programs/gpnewlib/include -I/c/Programs/OctaveLibs/include
-I/GnuWin32/include -I../libgnu -I../../../hg/octave-work/libgnu
-I../../../hg/octave-work/libcruft/misc -I../liboctave -I../../../hg/octave-work/liboctave -I.
-I../../../hg/octave-work/src -I/c/Programs/gpnewlib/include -I/c/Programs/OctaveLibs/include
-I/GnuWin32/include -O3 -DHAVE_CONFIG_H -mieee-fp -IC:/Programs/GnuWin32/include
-Ic:/Programs/gpnewlib/include/freetype2 -Ic:/Programs/gpnewlib/include -IC:/Programs/gpnewlib/include
-Wall -W -Wshadow -Wold-style-cast -Wformat -O3 -O3 -MT liboctinterp_la-gl-render.lo -MD -MP -MF
.deps/liboctinterp_la-gl-render.Tpo -c -o liboctinterp_la-gl-render.lo `test -f 'gl-render.cc' || echo
'../../../hg/octave-work/src/'`gl-render.cc
libtool: compile: g++ -shared-libgcc -DHAVE_CONFIG_H -I. -I../../../hg/octave-work/src -I..
-I/c/Programs/gpnewlib/include -I/c/Programs/OctaveLibs/include -I/GnuWin32/include -I../libgnu
-I../../../hg/octave-work/libgnu -I../../../hg/octave-work/libcruft/misc -I../liboctave
-I../../../hg/octave-work/liboctave -I. -I../../../hg/octave-work/src -I/c/Programs/gpnewlib/include
-I/c/Programs/OctaveLibs/include -I/GnuWin32/include -O3 -DHAVE_CONFIG_H -mieee-fp
-IC:/Programs/GnuWin32/include -Ic:/Programs/gpnewlib/include/freetype2 -Ic:/Programs/gpnewlib/include
-IC:/Programs/gpnewlib/include -Wall -W -Wshadow -Wold-style-cast -Wformat -O3 -O3 -MT
liboctinterp_la-gl-render.lo -MD -MP -MF .deps/liboctinterp_la-gl-render.Tpo -c
../../../hg/octave-work/src/gl-render.cc -DDLL_EXPORT -DPIC -o .libs/liboctinterp_la-gl-render.o
In file included from ../../../hg/octave-work/src/gl-render.h:43:0,
from ../../../hg/octave-work/src/gl-render.cc:33:
./graphics.h:9589:5: error: expected identifier before '__attribute__'
./graphics.h:9589:5: error: expected '}' before '__attribute__'
./graphics.h:9589:5: warning: '__stdcall__' attribute only applies to function types
./graphics.h:9589:14: error: expected unqualified-id before '=' token
./graphics.h: In member function 'std::string uimenu::get_accelerator() const':
./graphics.h:9599:53: error: 'accelerator' was not declared in this scope
./graphics.h: In member function 'void uimenu::execute_callback(const octave_value&) const':
./graphics.h:9601:78: error: 'callback' was not declared in this scope
./graphics.h: In member function 'octave_value uimenu::get_callback() const':
./graphics.h:9602:51: error: 'callback' was not declared in this scope
./graphics.h: In member function 'bool uimenu::is_checked() const':
./graphics.h:9604:41: error: 'checked' was not declared in this scope
./graphics.h: In member function 'std::string uimenu::get_checked() const':
./graphics.h:9605:49: error: 'checked' was not declared in this scope
./graphics.h: In member function 'bool uimenu::is_enable() const':
./graphics.h:9607:40: error: 'enable' was not declared in this scope
./graphics.h: In member function 'std::string uimenu::get_enable() const':
./graphics.h:9608:48: error: 'enable' was not declared in this scope
./graphics.h: In member function 'bool uimenu::foregroundcolor_is_rgb() const':
./graphics.h:9610:53: error: 'foregroundcolor' was not declared in this scope
./graphics.h: In member function 'bool uimenu::foregroundcolor_is(const std::string&) const':
./graphics.h:9611:65: error: 'foregroundcolor' was not declared in this scope
./graphics.h: In member function 'Matrix uimenu::get_foregroundcolor_rgb() const':
./graphics.h:9612:57: error: 'foregroundcolor' was not declared in this scope
./graphics.h: In member function 'octave_value uimenu::get_foregroundcolor() const':
./graphics.h:9613:58: error: 'foregroundcolor' was not declared in this scope
./graphics.h: In member function 'std::string uimenu::get_label() const':
./graphics.h:9615:47: error: 'label' was not declared in this scope
./graphics.h: In member function 'double uimenu::get_position() const':
./graphics.h:9617:45: error: 'position' was not declared in this scope
./graphics.h: In member function 'bool uimenu::is_separator() const':
./graphics.h:9619:43: error: 'separator' was not declared in this scope
./graphics.h: In member function 'std::string uimenu::get_separator() const':
./graphics.h:9620:51: error: 'separator' was not declared in this scope
./graphics.h: In member function 'std::string uimenu::get_fltk_label() const':
./graphics.h:9622:52: error: 'fltk_label' was not declared in this scope
./graphics.h: In member function 'void uimenu::set_accelerator(const octave_value&)':
./graphics.h:9629:13: error: 'accelerator' was not declared in this scope
./graphics.h: In member function 'void uimenu::set_callback(const octave_value&)':
./graphics.h:9640:13: error: 'callback' was not declared in this scope
./graphics.h: In member function 'void uimenu::set_checked(const octave_value&)':
./graphics.h:9651:13: error: 'checked' was not declared in this scope
./graphics.h: In member function 'void uimenu::set_enable(const octave_value&)':
./graphics.h:9662:13: error: 'enable' was not declared in this scope
./graphics.h: In member function 'void uimenu::set_foregroundcolor(const octave_value&)':
./graphics.h:9673:13: error: 'foregroundcolor' was not declared in this scope
./graphics.h: In member function 'void uimenu::set_label(const octave_value&)':
./graphics.h:9684:13: error: 'label' was not declared in this scope
./graphics.h: In member function 'void uimenu::set_position(const octave_value&)':
./graphics.h:9695:13: error: 'position' was not declared in this scope
./graphics.h: In member function 'void uimenu::set_separator(const octave_value&)':
./graphics.h:9706:13: error: 'separator' was not declared in this scope
./graphics.h: In member function 'void uimenu::set_fltk_label(const octave_value&)':
./graphics.h:9717:13: error: 'fltk_label' was not declared in this scope
./graphics.h: At global scope:
./graphics.h:9730:1: error: expected unqualified-id before 'private'
./graphics.h:9733:1: error: expected unqualified-id before 'public'
./graphics.h:9740:16: error: declaration of '~uimenu' as non-member
./graphics.h: In function 'base_properties& get_properties()':
./graphics.h:9742:51: error: 'xproperties' was not declared in this scope
./graphics.h: At global scope:
./graphics.h:9744:48: error: non-member function 'const base_properties& get_properties()' cannot have
cv-qualifier
./graphics.h: In function 'const base_properties& get_properties()':
./graphics.h:9744:48: error: new declaration 'const base_properties& get_properties()'
./graphics.h:9742:20: error: ambiguates old declaration 'base_properties& get_properties()'
./graphics.h:9744:63: error: 'xproperties' was not declared in this scope
./graphics.h: At global scope:
./graphics.h:9746:28: error: non-member function 'bool valid_object()' cannot have cv-qualifier
./graphics.h:9748:1: error: expected declaration before '}' token
./graphics.h: In function 'const base_properties& get_properties()':
./graphics.h:9744:76: warning: control reaches end of non-void function
./graphics.h: In function 'base_properties& get_properties()':
./graphics.h:9742:64: warning: control reaches end of non-void function
make[3]: *** [liboctinterp_la-gl-render.lo] Error 1
make[3]: Leaving directory `/home/octaves/OctBuild/hg-devel/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/octaves/OctBuild/hg-devel/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/octaves/OctBuild/hg-devel'
make: *** [all] Error 2


--------------------------------------
Get the new Internet Explorer 8 optimized for Yahoo! JAPAN
http://pr.mail.yahoo.co.jp/ie8/
Hello Tatsuro,

sorry for pointing you in the wrong direction. It seems fltk 1.1 also includes 'CALLBACK' somewhere. Can you try the attached Changeset. It adds the string "ID_" to all property-ids. (CALLBACK becomes ID_CALLBACK). Now it should compile with fltk 1.1 and 1.3

Kai

Attachment: Changeset.id_change
Description: Text document


reply via email to

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