Path: chuka.playstation.co.uk!news From: gil@snsys.com (Gil Jaysmith) Newsgroups: scea.yaroze.programming.gnu_compiler Subject: Re: C++ Include paths Date: Mon, 16 Feb 1998 19:52:27 GMT Organization: PlayStation Net Yaroze (SCEE) Lines: 26 Message-ID: <34e8985f.9569313@www-s.playstation.co.uk> References: <6c6f9n$beo3@chuka.playstation.co.uk> <6c6vj7$beo4@chuka.playstation.co.uk> <6c9vn7$beo20@chuka.playstation.co.uk> NNTP-Posting-Host: trish.snsys.com X-Newsreader: Forte Free Agent 1.11/32.235 On Mon, 16 Feb 1998 18:15:34 -0000, "Steve Dunn" wrote: >/psx2/bin/ld.exe: warning: global constructor >_GLOBAL_$I$__always_have_this_glob >al used >main.o: In function `CTest type_info function': >test.h(.text+0xd4): undefined reference to `__rtti_user' >test.h(.text+0xd4): relocation truncated to fit: JMPADDR __rtti_user >NMAKE : fatal error U1077: '\psx2\bin\ld.exe' : return code '0x1' >Stop. >............................ > >When I take out the 'virtual' from the 'print' declaration, it works fine, >although the output file 'demo' is almost 20k ! Compile with -fno-rtti. RTTI is enabled by default in the C++ compiler for no adequately-explored reason. You also need a module to handle static object initialisation. Graeme mentions something in the message above to the effect that he cobbles this. - Gil Gil Jaysmith, SN Systems ---- The contents of my messages are not to be confused with SN Systems' official positions or beliefs.