home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / cplus / 12559 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  1.5 KB

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