extern "C" From command line

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Is there any way to make exported function names unmangled without using
extern "C"? 

I'm compiling c++ file to a dll. Exported functions doesn't have extern
"C" specified for them, so their names got mangled.
The file cannot be edited.

gcc -x c++ source.cpp -o source.o 	
gcc -shared -o source.dll other_source.o source.o 

If I put required names into .def file but compile as c++ file, because
of mangling I got errors: "Can not export ZZZZ: symbol not defined"


Thanks,
Seyran


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux