From: Yongwei W. <wuy...@gm...> - 2007-10-01 05:42:39
|
On 01/10/2007, Emmanuel Stapf [ES] <ma...@ei...> wrote: > > Hi, > > I have the following C declaration: > > __declspec(dllexport) void __stdcall my_func (int i) { > } > > And when I build the DLL using `gcc -shared' the export list `my_func' where > I expected `_my_func' as done with the Microsoft C++ compiler. > > I'm not using a .def file since I want to export all symbols. > > What is the proper solution to have the `_'? This FAQ of mine may solve your problem more directly than the one Greg mentioned: http://wyw.dcweb.cn/dllfaq.htm The created .LIB file will link the MinGW DLL by ordinal. Removing the ordinals also seems to work, at least on MSVC 7.1. Best regards, Yongwei -- Wu Yongwei URL: http://wyw.dcweb.cn/ |