Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!psuvax1!psuvm!dearn!dmswwu1c!zvd007 From: ZVD007@DMSWWU1C.BITNET (U.Kuehn) Newsgroups: comp.sys.atari.st Subject: Re: GCC -g and G++ bogon alert!?! Message-ID: <91161.173759ZVD007@DMSWWU1C.BITNET> Date: 10 Jun 91 17:19:04 GMT References: Distribution: comp Lines: 22 Organisation: Westfaelische Wilhelms-Universitaet, Muenster, Germany In article , hess@rospc1.informatik.uni-hamburg.de (Hauke Hess) says: >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". The Problem is , that the linker does not handle the DRI-compatible symboltable in the correct way, so try using the -s option to advice the linker to strip off the symboltable. Bye the way, I've got the stuff from koeln, too, and I dont have that problem; maybe you are not using the linker provided in the package in the cs-directory at the site. U.Kuehn