Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!sarah!newserve!ub!zaphod.mps.ohio-state.edu!wuarchive!uunet!cadence!cadence.com!bammi From: bammi@acae127.cadence.com (Jwahar R. Bammi) Newsgroups: comp.sys.atari.st Subject: Re: GCC -g and G++ bogon alert!?! Message-ID: Date: 14 Jun 91 23:11:51 GMT References: Sender: usenet@cadence.com (USENET News) Distribution: comp Organization: Cadence Design Systems Lines: 40 In-Reply-To: hess@rospc1.informatik.uni-hamburg.de's message of 10 Jun 91 12:04:04 GMT -- bang: uunet!cadence!bammi jwahar r. bammi domain: bammi@cadence.com GEnie: J.Bammi CIS: 71515,155 In article hess@rospc1.informatik.uni-hamburg.de (Hauke Hess) writes: > If I try to compile the following program with g++: > #include > int main(){ cout << "Hello World\n"; } > > All works niecly until the link run. Then the linker says: Bogon alert: wrote > xxx Symbols, yyy expected. And the resulting file is not a TOS executable > (TOS error 66: not an executable program). > > The same happens, when I compile a normal gcc program with the gdb option "-g". > Then there is another number of wrote/expected symbols, but the resulting > program again is not executable. > > Has anyone encountered this problem and perhaps already solved it? > yes, you need a few updates. this problem, along with a newer gdb etc, were distributed as update8. the bogon alterts for gcc -g will go away if you use the patches to ld and sym-ld in update8.zoo. You also need to apply the diffs to gcc in that update to fully utilize -g. Since then there have been two update, update9 and update10. update10 contains the diffs to bring up gcc-1.40 on the ST. i recommend using that. all these updates are available from atari.archive.umich.edu either via ftp or via their mail request server. cheers, -- -- bang: uunet!cadence!bammi jwahar r. bammi domain: bammi@cadence.com GEnie: J.Bammi CIS: 71515,155