[LLVMdev] llvm gcc front end name mangling

Jeff Cohen jeffc at jolt-lang.org
Tue Oct 19 13:33:05 PDT 2004


Use :
   
   extern "C" void func();

The "C" is the key.

On Tue, 19 Oct 2004 15:29:22 -0500
"Patrick Meredith" <pmeredit at uiuc.edu> wrote:

> How can I declare a function prototype in C/C++ such that the gcc front end
> won't mangle the name?  I was told that extern would work once but it
> doesn't.
> 
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list