i dont' mean underscores in general, i mean the one on the dll. In there names start with an underscore (in red):Originally Posted by Parcel
[pascal]function enet_initialize : integer; cdecl; external enetdll name '_enet_initialize';[/pascal]
I don't know if that's an artifact of compiling a dll or if someone changed it or whatever else
The problem is that when i tried to make your headers cross platform, it turned out that libenet.a (in linux) doesn't have the underscores.
This mean i have to do something like:
[pascal]
{$IFDEF linux}
const PREFIX = '';
{$ELSE}
const PREFIX = '_';
{$ENDIF}
function enet_initialize : integer; cdecl; external enetdll name PREFIX+'enet_initialize';[/pascal]
which is not very nice.
Bookmarks