| delorie.com/archives/browse.cgi | search |
| From: | apsh AT ecr DOT mu DOT oz DOT au (Alistair_P SHILTON) |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | selectively turning off function name mangling in C++ |
| Date: | 25 Apr 2001 05:43:24 GMT |
| Organization: | Computer Science, University of Melbourne |
| Lines: | 19 |
| Message-ID: | <9c5o5s$fvc$1@mulga.cs.mu.OZ.AU> |
| NNTP-Posting-Host: | gromit.ecr.mu.oz.au |
| X-Trace: | mulga.cs.mu.OZ.AU 988177404 16364 128.250.61.61 (25 Apr 2001 05:43:24 GMT) |
| X-Complaints-To: | usenet AT cs DOT mu DOT OZ DOT AU |
| NNTP-Posting-Date: | 25 Apr 2001 05:43:24 GMT |
| X-Newsreader: | TIN [version 1.2 PL2] |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
I was wondering if it is possible to tell gxx to not mangle the names of certain functions? I've been trying to interface some of my C++ code with some fortran code I downloaded of the net. g77 mangles its function names by adding _'s to start and finish (so foo becomes _foo_). But gxx mangles the same function to _foo__*** (*** = annoying junk) - which stops the .o files from linking correctly! I know that you can get around this using a hex editor, but this is very slow (multiple .o files affected). Is there another way? -- ---------------------------------------------------- Thanks Alistair Shilton http://www.ee.mu.oz.au/pgrad/apsh/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |