Xref: utzoo comp.sys.att:8351 gnu.g++:577 unix-pc.general:4407 Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!uakari.primate.wisc.edu!uwm.edu!bionet!sdsu!berick!jeffl From: jeffl@berick.uucp (Jeff Lawhorn) Newsgroups: comp.sys.att,gnu.g++,unix-pc.general Subject: g++ on the UnixPC Message-ID: Date: 30 Dec 89 06:54:59 GMT Sender: jeffl@berick.uucp (Jeff Lawhorn) Reply-To: jeffl@berick.uucp Distribution: comp Organization: We Don't Need No Stinkin' Organization! Lines: 51 I am attempting to port g++ 1.36.1 to the UnixPC. I have gotten it to compile, but when I feed it the following source, it gives me error messages. (The same version of g++ running on a sun gives the correct results.) class x { public: x() {} ~x() {} }; int main(int argc, char *argv[]) { x y; return(0); } When I run g++, I get the following results: berick!jeffl(users) 141> g++ -v testit.cc gcc version 1.36.1- (based on GCC 1.36) /usr/local/lib/gcc-cpp -+ -v -undef -D__GNUC__ -D__GNUG__ -D__cplusplus -Dmc68k -Dunix -Dunixpc -D__mc68k__ -D__unix__ -D__unixpc__ testit.cc /usr/tmp/cca13036.cpp GNU CPP version 1.36 /usr/local/lib/gcc-cc1plus /usr/tmp/cca13036.cpp -quiet -dumpbase testit.cc -version -o /usr/tmp/cca13036.s GNU C++ version 1.36.1- (based on GCC 1.36) (68k, SGS/AT&T unixpc syntax) compiled by GNU C version 1.36. default target switches: testit.cc: In method x::x (): testit.cc:4: parse error at null character testit.cc:12: return from a constructor: use `this = ...' instead berick!jeffl(users) 142> Anyone have sugestions on where to start looking for the cause of this? Also, if I change the constructor/destructor to be forward references, and define the actual functions somewhere else, then it seems to work. Any light anyone can shed on this would be greatly appreciated since I can not get sdb to work on an executable the size of g++. -- Jeff Lawhorn I know I had a pithy quote sitting jeffl@berick.uucp around here somewhere... ucsd!sdsu!berick!jeffl -- Jeff Lawhorn I know I had a pithy quote sitting jeffl@berick.uucp around here somewhere... ucsd!sdsu!berick!jeffl