>There were a few tests with other compilers on windows, see
>http://sapdb.2scale.net/moin.cgi/PrecompilerOnWindows. 
>The problems don't seem unsurmountable, so if anyone is willing >to spend
the time to sort it out ...
>

Ok, I had a try at this and it seems to work ok (using GCC on Cygwin) as
follows:-

1) Create the DLL import for GCC to use,

  1) impdef libpcr.def libpcr.dll
  2) dlltool --dllname libpcr.dll --def libpcr.def --output-lib libpcr.dll.a
 
2) Then to compile/link with GCC use something like,

 cpc -H nocheck -c target
 gcc -O2 -Wall -Iusr/local/sapdb/depend/incl -mms-bitfields -c -o target.o
target.c
 gcc -o target.exe target.o -lpcr libsqlcad.lib

This should compile/link ok (assuming libpcr.dll.a and libsqlcad.lib can
be found) and run ok (assuming libpcr.dll is in search path).

David

_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general

Reply via email to