From: Paul Shirley Newsgroups: comp.os.msdos.djgpp Subject: Killing C++ name mangling Date: Sun, 30 Nov 1997 06:33:51 +0000 Organization: wot? me? Distribution: world Message-ID: Reply-To: Paul Shirley NNTP-Posting-Host: chocolat.foobar.co.uk Mime-Version: 1.0 Lines: 13 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Does anyone know how to force a C++ compilation to use extern "C" style linkage *without* wrapping all of the code in extern "C" clauses? We have a largish chunk of C that needs to be compiled as C++ (so we can overload floating point with our faster version), but its complaining badly at link time. I really don't want to hack the source too much before we get the final version... is there a nice gcc hack available? We'd like it to work on djgpp/pgcc and ccpsx, although we can live with a djgpp only hack. --- Paul Shirley: my email address is 'obvious'ly anti-spammed