[PD-dev] cross-compiling w32-externals

IOhannes m zmoelnig zmoelnig at iem.at
Wed Jan 25 10:20:37 CET 2006


hi.

yesterday i finally managed to cross-compile zexy for w32 on my 
debian/gnu-linux system using the MinGW32 cross-compiler.

while cross-compilation of other libraries (namely: iemmatrix) has 
worked for quite a while, i ran into a problem which i don't really 
understand:
when compiling zexy with "-O2", pd cannot load the library and bails out 
with "pd_new: apparently called before setup routine"
iirc, this happens at loading time (i am loading the library with "-lib 
zexy") and NOT when an object is created.
when i compile zexy without optimizations, it loads fine.

i haven't yet found time to track down the error to a special 
optimization that is turned with "-O2".

however, the same optimization-level (O2) with (say) "iemmatrix" does 
not yield an error.

turning on other optimizations (like SSE) is unproblematic.

i am using pd-0.39-2.msw as found on miller's website. (actually it is 
the mirror on ftp.iem.at that i use, but they should be identical (as in 
"mirror"))


does anybody has an idea what might be the cause of this behaviour?


mfg.asd.r
IOhannes

PS: looking forward to the time where i can compile everything without 
having to switch to w32.
btw, is there a w32 cross-compiler setup at sourceforge?




More information about the Pd-dev mailing list