[Ecls-list] win32 compilation error

Goffioul Michael goffioul at imec.be
Wed Mar 22 23:58:03 UTC 2006


> On Wed, 2006-03-22 at 14:23 +0100, Marko Kocić wrote:
> > Hi all.
> > I'm trying to build CVS head of ecl on winxp pro using mingw with 
> > newest gcc-4.1. I use the following configuration options:
> > ./configure --with-tcp --with-clx --enable-threads After that build 
> > fails with the following error:
> > c:/dev/cvstree/ecl/ecl/src/c/print.d: In function 'edit_double':
> > c:/dev/cvstree/ecl/ecl/src/c/print.d:494: error: '_MCW_EM' 
> undeclared 
> > (first use in this function)
> > c:/dev/cvstree/ecl/ecl/src/c/print.d:494: error: (Each undeclared 
> > identifier is reported only once
> > c:/dev/cvstree/ecl/ecl/src/c/print.d:494: error: for each 
> function it 
> > appears in.)
> > c:/dev/cvstree/ecl/ecl/src/c/print.d: In function 'write_double':
> > c:/dev/cvstree/ecl/ecl/src/c/print.d:555: error: '_MCW_EM' 
> undeclared 
> > (first use in this function)
> > make[2]: *** [print.o] Error 1
> > However, I was able to build it before using gcc-3.4.5. Any 
> ideas how 
> > to proceed?
> 
> I tried to reproduce your problems, but there is no version 
> 4.1 of gcc released from the mingw project. Thus it is 
> possible that the compiler itself has problems with some of 
> the headers that are shipped with your installation. Indeed 
> the macros you mention are not used in ECL at all:
> they must come from mingw headers or win32 headers.

These macros are actually used in internal.h to define floating-point
exception handling routines. MCW_EM is defined in float.h, either in
MSVC or mingw include directory.

Michael.




More information about the ecl-devel mailing list