Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!netnews.upenn.edu!scotty.dccs.upenn.edu!kehoe From: kehoe@scotty.dccs.upenn.edu (Brendan Kehoe) Newsgroups: comp.lang.c Subject: Porting to a 3b2 Summary: It works on a Sun and a PC .. but NOT AT&T..argh Message-ID: <28562@netnews.upenn.edu> Date: 16 Aug 90 18:39:07 GMT Sender: news@netnews.upenn.edu Reply-To: kehoe@scotty.dccs.upenn.edu (Brendan Kehoe) Distribution: usa Organization: University of Pennsylvania Lines: 20 Ever have one of those days? I wrote a program first originally in QuickC..then the folks using it suggested porting it over to Unix, soo I rewrote it on my Sun and it worked great! But, being that I work for the gov't and all, they of course wanted it to work on the AT&T 3b2 -- so I bring the source over there, thinking that I've made it as vanilla as I could, and *slam* was I wrong. It refuses any sort of prototyping or function predeclaration at all; it won't let me do something like: int (*step[7])(int *) = { *step1, *step2, *step3, .., *step7 }; It won't let me do any sort of automatic initialization at all (like doing char *x[8]={"step1", "step2", "step3", ... etc }; which has *really* made me grow to hate that machine. Is it K&R compatible at all?? I've tried doing the above with and without the array width (8), to no avail. I'm convinced that the 3b2's not a machine to write software for...please prove me wrong! Brendan Kehoe - Sun Network Manager - brendan@cs.widener.edu brendan@world.std.com - brendan@chinet.chi.il.us - brendan@cup.portal.com brendan@wet.uucp - brendan@zorch.sf-bay.org - Ad infinitum ...