Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!ulysses!hector!ekrell From: ekrell@hector.UUCP (Eduardo Krell) Newsgroups: comp.lang.c++ Subject: Re: C --> C++ Message-ID: <11437@ulysses.homer.nj.att.com> Date: 16 Apr 89 02:04:48 GMT References: <6590096@hplsla.HP.COM> Sender: netnews@ulysses.homer.nj.att.com Reply-To: ekrell@hector.UUCP (Eduardo Krell) Organization: AT&T Bell Laboratories Lines: 17 In article <6590096@hplsla.HP.COM> jima@hplsla.HP.COM (Jim Adcock) writes: >Can you >do a extern "C" like construct that goes the other >way? You should have added "in a portable way"... Since C++ doesn't have a standard naming convention for generating unique names for the loader, each compiler does its own name mangling. The result is that you even can't link together .o's generated by different C++ compilers (or even different versions of the same compiler, if there was a change in the name mangling scheme between the two versions). Eduardo Krell AT&T Bell Laboratories, Murray Hill, NJ UUCP: {att,decvax,ucbvax}!ulysses!ekrell Internet: ekrell@ulysses.att.com