[Gridflow-dev] [win32] Building on MinGW, possible?

federico mescalinum at gmail.com
Sun Mar 25 07:59:35 EDT 2007


okay, I did go a little further...
I solved some stl conflicts, but now I am unsure about a (missing)
memalign() function. I see other software (vlc media player, mplayer)
have a what they call a memalign-hack, so seems is well known MinGW
(and possibly others) haven't memalign()....
what I could do? [could be replaced by malloc() eventually?]

here's my compiler output, and below config.h/config.make

g++ -I/usr/local/include -Ic:/ruby-src -I. -xc++ -fno-operator-names
-fno-omit-frame-pointer -falign-functions=16 -mtune=i686 -march=i686
-Wall -Wno-unused -Wunused-variable -g -fPIC -I. -O2 -funroll-loops -c
base/main.c.fcs -o base/main.o
base/main.c.fcs:1: warning: -fPIC ignored for target (all code is
position independent)
In file included from base/main.c.fcs:45:
base/grid.h.fcs:259:1: warning: "INT" redefined
base/grid.h.fcs:63:1: warning: this is the location of the previous definition
In file included from base/main.c.fcs:45:
base/grid.h.fcs: In member function `void Grid::init(P<Dim>, NumberTypeE)':
base/grid.h.fcs:655: error: `memalign' undeclared (first use this function)
base/grid.h.fcs:655: error: (Each undeclared identifier is reported
only once for each function it appears in.)
base/main.c.fcs: In function `void* gfmalloc(size_t)':
base/main.c.fcs:494: error: `memalign' undeclared (first use this function)
base/main.c.fcs: In function `void blargh()':
base/main.c.fcs:519: error: `backtrace' undeclared (first use this function)
base/main.c.fcs:520: error: `backtrace_symbols' undeclared (first use
this function)
base/main.c.fcs: At global scope:
base/main.c.fcs:298: warning: 'ciFObject' defined but not used
make: *** [base/main.o] Error 1


--------------------------config.h--------------------------------
#ifndef __CONFIG_H
#define __CONFIG_H
/* this file was auto-generated by gridflow/configure */
#define STARTUP_LIST(PRE) \
PRE startup_mmx();\
PRE startup_mmx_loader();\
PRE startup_jpeg();\
PRE startup_png();
#define HAVE_GCC3
#define HAVE_PENTIUM
#define HAVE_MMX
#define HAVE_PUREDATA
#define GEM_SOURCE "../Gem/src"
#define PD_VERSION_INT 39
#define GCC_VERSION "3.4.2"
#define CPU "i686"

#endif /* __CONFIG_H */

--------------------------config.make--------------------------------
RUBYARCH=i386-mingw32
BRIDGE_LDFLAGS = -lm -lruby
BRIDGE_LDFLAGS += -rdynamic -shared
CFLAGS +=  -I/usr/local/include -Ic:/ruby-src -I. -xc++
-fno-operator-names -fno-omit-frame-pointer -falign-functions=16
-mtune=$(CPU) -march=$(CPU)
LDSOFLAGS += -lm -ljpeg -lpng -lz
HAVE_GCC3=yes
HAVE_PENTIUM=yes
HAVE_MMX=yes
HAVE_PUREDATA=yes
GEM_SOURCE=../Gem/src
PD_VERSION_INT=39
GCC_VERSION=3.4.2
CPU=i686
CXX = g++
OBJS = cpu/mmx.o cpu/mmx_loader.o format/jpeg.o format/png.o
DLEXT = dll



More information about the Gridflow-dev mailing list