On Sat, Aug 11, 2012 at 8:20 AM, Martin Mitáš wrote: > > Dne 11.8.2012 12:26, Ruben Van Boxem napsal(a): >> Would you mind conjuring up a small test case (dll .c file, main.c >> file and compile options)? dllexport/dllimport of normal functions >> should work (dllexport of C++ classes is WIP). I *seem* to remember >> using a Clang-built GSL DLL once before, but I may be mistaken. > > The goal (corresponding to the uriginal case) is to output a DLL where > __stdcall > symbols are exported without the decoration as Windows system DLLs do. >
__stdcall 32bit windows always decorates with @BYTES where @BYTES is the number of arguments times four bytes. __stdcall 64bit windows changed it so no @BYTES is in the exported symbols. If you don't want @BYTES in the exported symbol then you should use __cdecl instead. However, ld has an option --kill-at that will remove the @BYTES from the exported symbols but you may not be happy with it, don't know since I haven't used it. -- Earnie -- https://sites.google.com/site/earnieboyd ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
