Hi,

I have a function declared like this:

extern "C" __declspec(dllexport) void __stdcall foo()
{
}

When I build this into a DLL using the Visual C++ compiler (cl.exe),
the exported name is:

_foo@0

but when I build it using the GNU C++ compiler (g++), the exported
name is:

foo@0

Which one is correct?  I have read that the stdcall convention should
prepend an underscore to exported names - should the extern "C"
qualifier remove it?

Regards,
Ben.

Mercia Software Ltd.
Mercia House 
Ashted Lock
Aston Science Park
Birmingham B7 4AZ, UK 
Registered Number: 1868855 (Cardiff) 
Tel: 44 (0)121 359 5096 
Fax: 44 (0)121 359 0375 
Web Site: http://www.mercia.com 




--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

Reply via email to