![odaigle's picture odaigle's picture](/sites/default/files/images/userpic_default.png)
Thu, 04/25/2002 - 22:49
Forums:
Hi all,
I'm trying to compile Open Cascade for Linux on a Power Mac dual G4 1GHz. Everything compiles fine until the compiler encounters the string PPC (which stands for PinpointConstraint) in the code. The thing is that PPC in internally defined by the compiler to tell the code that is about to be compiled on a Power PC! Thus, PPC evaluates to 1 and many nasty errors aries from that.
What do you suggest me to do to solve this problem? PPC is used many times and I would not like to replaces all instances of PPC for something else. This would break the API...
Olivier
Fri, 04/26/2002 - 14:24
Fixed. Ugly hack but it works: added
#ifdef PPC
#undef PPC
#endif
At the beginning of inc/Standard.hxx
It now compiles fine ;-)
Olivier