ftp.delorie.com/archives/browse.cgi | search |
Date: | Tue, 20 Jul 93 13:19:16 EDT |
From: | DJ Delorie <dj AT ctron DOT com> |
To: | gke AT moosehead DOT aero DOT org |
Cc: | djgpp AT sun DOT soe DOT clarkson DOT edu |
Subject: | Re: compiler/assembler labels/symbols |
> and in my C program I have a prototype void my_label_here(void), > the compiler generates a symbol _my_label_here__Fv and obviously > I get a linker error. How do I get the symbols to match??? Add this: extern "C" my_label_here(void); It causes the compiler to not mangle the name. If you compile C code instead of C++ you do not need to do this. Alternatively, you could change your assembler label to match the mangled name.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |