[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnuplot-info-beta
Subject:    cannot complie winmain.c on mingw64 (was Re: complie error internal.c
From:       Tatsuro MATSUOKA <tmacchant3 () yahoo ! co ! jp>
Date:       2011-08-25 4:49:16
Message-ID: 468213.67015.qm () web100312 ! mail ! kks ! yahoo ! co ! jp
[Download RAW message or body]

Hello

I have found in syscfg.h

338: #ifndef GP_MATHERR
339: # define GP_MATHERR matherr
340: #endif

So that I have commented  out GP_MATHERR function in internal.c and continue to try \
to build further

******************************
x86_64-w64-mingw32-gcc -shared-libgcc -c -I/cygdrive/c/Programs/gplibs64/include -O3 \
-I. -I../../src -D_Windows -DHAVE_CONFIG_H -DPIPES -DWGP_CONSOLE -DUSE_MOUSE=1 \
-DWIN_IPC -DWITH_HTML_HELP -I/cygdrive/c/PROGRA~2/HELPWO~1/include -DHAVE_LIBGD \
-DHAVE_LIBPNG -DHAVE_GD_GIF -DGIF_ANIMATION -DHAVE_GD_PNG -DHAVE_GD_JPEG \
-DHAVE_GD_TTF -DHAVE_ICONV -DHELPFILE=\"wgnuplot.chm\" ../../src/win/winmain.c In \
                file included from ../../src/win/winmain.c:60:0:
/usr/x86_64-w64-mingw32/sys-root/mingw/include/commctrl.h:17:2: error: #error \
_WIN32_IE setting conflicts In file included from ../../src/win/winmain.c:61:0:
/usr/x86_64-w64-mingw32/sys-root/mingw/include/shlobj.h:17:2: error: #error _WIN32_IE \
setting conflicts In file included from \
/usr/x86_64-w64-mingw32/sys-root/mingw/include/shlobj.h:91:0,  from \
                ../../src/win/winmain.c:61:
/usr/x86_64-w64-mingw32/sys-root/mingw/include/shlguid.h:16:2: error: #error \
                _WIN32_IE setting conflicts
make: *** [winmain.o] Error 1
********************************************
I will try to investigate what

#error _WIN32_IE setting conflicts 

is.

Therefore I am not able to build 64 bit version gnuplot for windows at the moment.

Regards

Tatsuro
--- On Thu, 2011/8/25, Tatsuro MATSUOKA wrote:

> Hello
> 
> Thank you for the reply.
> 
> --- On Thu, 2011/8/25, Ethan A Merritt wrote:
> 
> > The only way I can see for that error message to make sense is if 
> > HAVE_STRUCT_EXCEPTION_IN_MATH_H
> > is not defined.  Is the setting in config/config.mgw correct?
> 
> The default setting in config.mgw, HAVE_STRUCT_EXCEPTION_IN_MATH_H is not defined.
> For math.h for 32 bit gcc complier seems not to require \
> HAVE_STRUCT_EXCEPTION_IN_MATH_H is defined. 
> I have manually define HAVE_STRUCT_EXCEPTION_IN_MATH_H in config.mgw and tried \
> compile again. 
> *********************
> x86_64-w64-mingw32-gcc -shared-libgcc -c -I/cygdrive/c/Programs/gplibs64/include \
> -O3 -I. -I../../src -D_Windows -DHAVE_CONFIG_H -DPIPES -DWGP_CONSOLE -DUSE_MOUSE=1 \
> -DWIN_IPC -DWITH_HTML_HELP -I/cygdrive/c/PROGRA~2/HELPWO~1/include -DHAVE_LIBGD \
> -DHAVE_LIBPNG -DHAVE_GD_GIF -DGIF_ANIMATION -DHAVE_GD_PNG -DHAVE_GD_JPEG \
>                 -DHAVE_GD_TTF -DHAVE_CAIROPDF -DHAVE_ICONV ../../src/internal.c
> ../../src/internal.c:63:13: warning: 'struct exception' declared inside parameter \
>                 list
> ../../src/internal.c:63:13: warning: its scope is only this definition or \
>                 declaration, which is probably not what you want
> ../../src/internal.c:63:1: error: conflicting types for '_matherr'
> /usr/x86_64-w64-mingw32/sys-root/mingw/include/math.h:179:23: note: previous \
>                 declaration of '_matherr' was here
> make: *** [internal.o] Error 1
> 
> **********************************************************
> The "error: conflicting types for '_matherr'" appeared.
> 
> internal.c:63 
> 62: int
> 63: GP_MATHERR( STRUCT_EXCEPTION_P_X )
> 
> /usr/x86_64-w64-mingw32/sys-root/mingw/include/math.h:179
> 
> 177: #ifndef _CRT_MATHERR_DEFINED
> 178: #define _CRT_MATHERR_DEFINED
> 179:   _CRTIMP int __cdecl _matherr (struct _exception *);
> 180: #endif
> 
> Hmmm! What is wrong?
> 
> Regards
> 
> Tatsuro
> 
> ------------------------------------------------------------------------------
> EMC VNX: the world's simplest storage, starting under $10K
> The only unified storage solution that offers unified management 
> Up to 160% more powerful than alternatives and 25% more efficient. 
> Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
> _______________________________________________
> gnuplot-beta mailing list
> gnuplot-beta@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
> 

------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
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