Hi devs,
During my pdp porting effort I have been able to solve the problem with mingw compilation. The trick is to add a flag to gcc, it is called -mms-bitfields.
Using this, t_object has the same size, with visual studio and gcc.
Thought the info might be useful, sorry if it is already known. I propose to add this flag under windows for mingw compiled pd and all externals.
Guenter
Hi devs,
During my pdp porting effort I have been able to solve the problem with mingw compilation. The trick is to add a flag to gcc, it is called -mms-bitfields.
Using this, t_object has the same size, with visual studio and gcc.
Thanks very much. I really fighted with that issue this week...
LG Georg
hi Guenter,
� wrote: ...
During my pdp porting effort I have been able to solve the problem with mingw compilation. The trick is to add a flag to gcc, it is called -mms-bitfields.
good to know, thanks. I think it is safe for externals to use that flag and load into pd mingw-compiled without it, unless an external directly accesses t_object's fields, etc? That is not always the case, though. So, the flag should be standard.
Anybody willing to add it to pd-devel? do not want to do this myself, not using mingw for anything but checking that my stuff works there...
Krzysztof
On a related note, it would be great if someone could update this HOWTO page for building Pd with MinGW:
http://puredata.org/docs/developer/mingw
I started it a while back, but was never successful in getting it to work, so its unfinished.
.hc
On May 10, 2005, at 3:31 AM, Krzysztof Czaja wrote:
hi Guenter,
� wrote: ...
During my pdp porting effort I have been able to solve the problem with mingw compilation. The trick is to add a flag to gcc, it is called -mms-bitfields.
good to know, thanks. I think it is safe for externals to use that flag and load into pd mingw-compiled without it, unless an external directly accesses t_object's fields, etc? That is not always the case, though. So, the flag should be standard.
Anybody willing to add it to pd-devel? do not want to do this myself, not using mingw for anything but checking that my stuff works there...
Krzysztof
PD-dev mailing list PD-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
________________________________________________________________________ ____
"[W]e have invented the technology to eliminate scarcity, but we are deliberately throwing it away to benefit those who profit from scarcity." -John Gilmore