From: Earnie B. <ea...@us...> - 2012-08-11 16:29:44
|
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 |