[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, 02 Nov 2010 13:48:30 +0100 |
-------- Original-Nachricht --------
> Datum: Tue, 2 Nov 2010 10:45:32 +0900 (JST)
> Von: Tatsuro MATSUOKA <address@hidden>
> An: address@hidden
> Betreff: Complie error of gl-render.cc (MinGW build : concerning to uimenu?)
> Hello
>
> I have tried to compile the recent source on the development branch.
>
> Mon Nov 01 06:54:43 2010 -0400
>
>
> I have met the following error,
> /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:9387:5: error: expected identifier before '__attribute__'
> ./graphics.h:9387:5: error: expected '}' before '__attribute__'
> ./graphics.h:9387:5: warning: '__stdcall__' attribute only applies to
> function types
> ./graphics.h:9387:14: error: expected unqualified-id before '=' token
> ./graphics.h: In member function 'std::string uimenu::get_accelerator()
> const':
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 ... .
Kai
- Complie error of gl-render.cc (MinGW build : concerning to uimenu?), Tatsuro MATSUOKA, 2010/11/01
- Re: Complie error of gl-render.cc (MinGW build : concerning to uimenu?),
Kai Habel <=
- Re: Complie error of gl-render.cc (MinGW build : concerning to uimenu?), Michael Goffioul, 2010/11/02
- Re: Complie error of gl-render.cc (MinGW build : concerning to uimenu?), Tatsuro MATSUOKA, 2010/11/04
- Re: Complie error of gl-render.cc (MinGW build : concerning to uimenu?), Kai Habel, 2010/11/09
- Re: Complie error of gl-render.cc (MinGW build : concerning to uimenu?), Tatsuro MATSUOKA, 2010/11/10
- Re: Complie error of gl-render.cc (MinGW build : concerning to uimenu?), Kai Habel, 2010/11/11
- Re: Complie error of gl-render.cc (MinGW build : concerning to uimenu?), John W. Eaton, 2010/11/11
- Re: Complie error of gl-render.cc (MinGW build : concerning to uimenu?), Kai Habel, 2010/11/11
- Re: Complie error of gl-render.cc (MinGW build : concerning to uimenu?), Michael Goffioul, 2010/11/11
- Re: Complie error of gl-render.cc (MinGW build : concerning to uimenu?), John W. Eaton, 2010/11/11
- Re: Complie error of gl-render.cc (MinGW build : concerning to uimenu?), Michael Goffioul, 2010/11/12