« MySQL library for MinGW | Main | Beagle 2 : found? »
December 22, 2003
Building DLLs with G++ for Delphi
Building DLL with G++
testfn.c
__declspec(dllexport) int testfn(int i, int j)
{
return i+j;
}
Compiling
g++ -x c -c testfn.c
Linking DLL
dllwrap --dllname=tst.dll testfn.o
Using in Delphi
function testfn(i: integer; j: integer): integer; cdecl; external 'tst.dll';
Posted by daen at December 22, 2003 09:51 PM