Jason P Sage wrote: > Hello All, > > I have just installed the same exact FPC 2.0.4 Binary install on a new XP > Pro Box. When I compile code on this box with source files that compile > On my other XP Pro box and my Fedora Linux Box - I get invalid operator. > > I'm using the Bracket style compiler directive for objfpc compile mode in > the source file. > > Here is pseudo code example of the problem. This problem is very mechanical > and reproducible on this new XP Pro machine. I'm hoping it’s a compiler > configuration flag or something - but I can't figure it out. > > > -----------------BEGIN------------------ > > program test; > > // Platform Size integer in theory (32 bit on 32bit machine) > var MyInt: integer; > > begin > MyInt+=1; // Error Here > End. > > -------------- END ------------------- > > Note: Same Source file compiles fine on both an XP Pro box, and a Linux > Fedora 5 box, but on a brand new Windows XP Pro machine - this problem is > coming up.
This is not a standard pascal syntax. You need to enable this with the -Sc switch. I guess you changed your fpc.cfg and haven't done so on your new box Marc _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel