g++ on the UnixPC
Jeff Lawhorn
jeffl at berick.uucp
Sat Dec 30 17:54:59 AEST 1989
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 at berick.uucp around here somewhere...
ucsd!sdsu!berick!jeffl
--
Jeff Lawhorn I know I had a pithy quote sitting
jeffl at berick.uucp around here somewhere...
ucsd!sdsu!berick!jeffl
More information about the Unix-pc.general
mailing list