home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!fulcrum!rct
- From: rct@fulcrum.bt.co.uk (Richard Taylor)
- Newsgroups: comp.lang.c++
- Subject: Libraries which depend on compiler (mangling).
- Message-ID: <Bt8922.ED4@fulcrum.bt.co.uk>
- Date: 19 Aug 92 10:56:26 GMT
- Sender: Richard Taylor
- Organization: Fulcrum Communications
- Lines: 24
-
- Libraries which depend on compiler (mangling)
- ---------------------------------------------
-
- I suspect this is probably an old chesnut, but I'm new to C++, and have just
- come across the fact that different compilers mangle names in different
- ways (g++ and cfront, in particular).
- This means that when I purchase a library of objects (which happen to have
- been compiled with cfront) I cannot compile my own code (with g++) and link
- it together with the object library, without also purchasing cfront. In a
- world of releatively portable code, this is an incredible oversight.
-
- Is there any way around this problem? Is there a way of getting g++ to
- mangle using the same method as cfront, so the two can agree names?
-
- Presumably this problem will be fixed by a consenus of deciding the 'best'
- way to mangle a name? Will this be specified in some ANSI specification?
-
- Thanks for any info/help.
-
- ============================================================================
- Richard Taylor DoD #981 (rct@fulcrum.bt.co.uk)
- "Gentlemen, starta your engines... 2 minutes, to the hills." Massimo Laverda
- ============================================================================
- Fulcrum Communications Ltd., Fordrough Lane, Birmingham, B9 5LD, ENGLAND.
-