I tried your proposal.

I had to comment out include DxErr.h, Eclipse + GCC can't resolve.

After a build i got the following error:
Code:
In file included from D:/GStudio8/sdk_engine/adll.h:64:0,
                 from ../HelloA8.cpp:35:
D:/GStudio8/sdk_engine/afuncs.h:18:22: error: 'var (* random)(var)' redeclared as different kind of symbol
 EXT_var F(random)(var);
                      ^
In file included from /usr/include/ctype.h:4:0,
                 from /usr/include/w32api/winnt.h:16,
                 from /usr/include/w32api/minwindef.h:163,
                 from /usr/include/w32api/windef.h:8,
                 from /usr/include/w32api/windows.h:69,
                 from ../HelloA8.cpp:27:
/usr/include/stdlib.h:234:6: note: previous declaration 'long int random()'
 long _EXFUN(random,(_VOID));
      ^



The interesting thing if i comment out the #define DLL_USE, i different message:
Code:
In file included from D:/GStudio8/sdk_engine/adll.h:64:0,
                 from ../HelloA8.cpp:35:
D:/GStudio8/sdk_engine/afuncs.h:18:22: error: conflicting declaration of C function 'var random(var)'
 EXT_var F(random)(var);
                      ^
In file included from /usr/include/ctype.h:4:0,
                 from /usr/include/w32api/winnt.h:16,
                 from /usr/include/w32api/minwindef.h:163,
                 from /usr/include/w32api/windef.h:8,
                 from /usr/include/w32api/windows.h:69,
                 from ../HelloA8.cpp:27:
/usr/include/stdlib.h:234:6: note: previous declaration 'long int random()'
 long _EXFUN(random,(_VOID));
      ^



So... still persists.

Last edited by Aku_Aku; 08/12/16 20:45.