| From | Sent On | Attachments |
|---|---|---|
| Daniel Heckenberg | Feb 27, 2003 8:29 pm | |
| chris clepper | Feb 28, 2003 12:43 am | |
| guenter geiger | Feb 28, 2003 1:36 am | |
| guenter geiger | Feb 28, 2003 2:01 am | |
| Frank Barknecht | Feb 28, 2003 2:14 pm | |
| chris clepper | Mar 1, 2003 12:39 am | |
| guenter geiger | Mar 1, 2003 11:17 am | |
| guenter geiger | Mar 1, 2003 11:20 am | |
| chris clepper | Mar 1, 2003 12:14 pm | |
| guenter geiger | Mar 3, 2003 3:30 am |
| Subject: | Re: [PD-dev] [GEM] GEM CVS... x-platform issues | |
|---|---|---|
| From: | guenter geiger (gei...@xdv.org) | |
| Date: | Feb 28, 2003 2:01:24 am | |
| List: | at.iem.pd-dev | |
On Fri, 28 Feb 2003, guenter geiger wrote:
On Fri, 28 Feb 2003, Daniel Heckenberg wrote:
1) Problem: 'for' scoping for VC++ 6.0 isn't compatible with the "new ISO" style scoping that GCC seems to support/default to.
E.g. for (int i=0; i < i_max; i++) func(i); for (int I=0; i < i_MAX; i++) // causes VC++ redefinition error func2(i);
Short-term Solution: I just removed any variable redefinitions that caused compiler errors under VC++. This may now result in warnings on other platforms. This is undesirable and I don't want to suggest that the code should conform to VC++ non-conformance...
This is not non-conformance, if you find constructs like the ones you mentioned, you have to change them, this is true for all platforms.
int i; for (i=0;...) ...
Trying to compile GEM on linux yields problems now:
for (int i=0;i<10;i++) a[i] = b[i]; for (i=0;i<10;i++) a[i] = b[i];
does not work.
should be
int i; for (i=0;i<10;i++) a[i] = b[i]; for (i=0;i<10;i++) a[i] = b[i];
... changed and checked in for Geos/newWave.cpp Pixes/pix_convolve.cpp
Guenter





