Hi, Well, I need to create a Windows version of the library I previously created on the Mac. I've installed MingW32 and MYSYS on my PC. GPC automakes my Pascal source files and creates .o and .gpi files. And at this point I'm completely at sea.
I need to create a DLL which is loadable from a Visual Studio C++ application.
By analogy with the gcc command given in the MingW32 FAQ (http:// www.mingw.org/mingwfaq.shtml), I tried:
$ gpc -c --automake MySource.p -shared -o MySource.DLL -Wl, --ouput- def, MySource.def, --out-implib, MySource.a -lgpc
and the output is:
gpc.exe: --output-def: linker input file unused because linking not done gpc.exe: MySource.def: linker input file unused because linking not done gpc.exe: --out-implib: linker input file unused because linking not done gpc.exe: MySource.a: linker input file unused because linking not done gpc.exe: -lgpc: linker input file unused because linking not done
And even if this had worked, I'm not quite sure what the next step would have been, so it'd be nice if I could get all the voodoo and not just the next step.
I could use, and appreciate some hand holding here.
$gpc --version gpc.exe 20051116, based on gcc-3.2.3 (mingw special 20030504-1)
$ gcc --version gcc.exe (GCC) 3.2.3 (mingw special 20030504-1)
--glenn