Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!samsung!rex!uflorida!bikini!thoth From: thoth@shark.cis.ufl.edu (Robert Forsman) Newsgroups: gnu.g++ Subject: bastard programs Message-ID: Date: 1 Dec 89 17:57:34 GMT Sender: news@uflorida.cis.ufl.EDU Distribution: gnu Organization: /cis/lightning0/thoth/.organization Lines: 18 How many people have bastardized existing programs? I had a program written in pseudo-ANSI C (gcc -Wall didn't complain). Some of the data structures started to get really complex and I was beginning to lose track of what I was doing. I put the program on the back burner until we could get a working version of g++. We have g++ now and I finally have hacked the program until it will compile with minimal warnings. The major problem is it's now a mix of C++ and C. I have extern "C" statements everywhere to prevent name mungeing of functions called by the C parts. I also mix IO between cerr and stderr (no cout, I'm using sockets for all normal xactions). I've been getting SEGV inside of an fprintf statement. I converted it to a cerr << and it still SEGVs. If any of you guys can mail me hints, I'd really appreciate it. THOTH out -=O=- -- ( My name's not really Gilligan, It's Robert Forsman, without an `e' ) Brought to you by Super Global Mega Corp .com