delorie.com/archives/browse.cgi | search |
From: | Paul Shirley <Paul AT no DOT spam DOT please> |
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: | <tmoBYFAPjQg0EwOZ@foobar.co.uk> |
Reply-To: | Paul Shirley <Paul AT chocolat DOT obvious DOT fake DOT foobar DOT co DOT uk> |
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 |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |