Not having SWIG installed myself, I know that there's often issues with different versions of GCC on OS X...you might want to verify in the SWIG install docs (if they exist) and make sure your version of GCC doesn't have some odd incompatibility with the SWIG source. Only a guess, but still :)
-Jeff On Dec 6, 2005, at 4:21 PM, Louis Pecora wrote: > I'm trying to install the SWIG > > The README says to treat Mac OS X like a Unix (makes sense) and do the > following, > > % ./configure > % make > % make install > > ./configure seemed to run ok. No errors that I could see in the long > print out. > > When I try the first make I get, > > louispec% make > make all-am > depbase=`echo CParse/cscanner.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; \ > if g++ -DHAVE_CONFIG_H -I../Source/Include -I../Source/CParse > -I../Source/Include -I../Source/DOH -I../Source/CParse > -I../Source/Preprocessor -I../Source/Swig -I../Source/Modules -g -O2 > -Wall -W -ansi -pedantic -MT CParse/cscanner.o -MD -MP -MF > "$depbase.Tpo" -c -o CParse/cscanner.o CParse/cscanner.c; \ > then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f "$depbase.Tpo"; > exit > 1; fi > In file included from CParse/cscanner.c:18: > parser.y:1252: error: parse error before `throw' > parser.y:1266: error: parse error before `throw' > make[2]: *** [CParse/cscanner.o] Error 1 > make[1]: *** [all] Error 2 > make: *** [source] Error 2 > Exit 2 > > This leaves me baffled. Anyone know what's wrong? I checked and the > Mac uses the GNU make as required. > > -- > Cheers, > > Lou Pecora > > Code 6362 > Naval Research Lab > Washington, DC 20375 > USA > Ph: +202-767-6002 > email: [EMAIL PROTECTED] > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig -- Jeffrey E. Forcier Junior Developer, Research and Development Stroz Friedberg, LLC 15 Maiden Lane, 12th Floor New York, NY 10038 [main]212-981-6540 [direct]212-981-6546 http://www.strozllc.com This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No right to confidential or privileged treatment of this message is waived or lost by any error in transmission. If you have received this message in error, please immediately notify the sender by e-mail or by telephone at 212.981.6540, delete the message and all copies from your system and destroy any hard copies. You must not, directly or indirectly, use, disclose, distribute, print or copy any part of this message if you are not the intended recipient. _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig