I downloaded gcc 3.2 as part of cygwin. I would like to use gcc as the C
compiler for my DB2 stored procedures. I am using DB2 7.2 FP6. Can anyone
help me figure out how to use it ?
I have tried the following settings, but gcc command cannot compile a .c
file generated by DB2 from the stored procedure.
db2set DB2_SQLROUTINE_COMPILE_COMMAND=gcc -I "E:\Program
Files\SQLLIB\include" SQLROUTINE_FILENAME.c -shared -o SQLROUTINE_FILENAME
-L "E:\Program Files\SQLLIB\lib" -ldb2
I guess the problem is in using the right linker option. Also, on Win2K,
there is a library named db2api.lib, but none called db2.* (on AIX, we have
db2.o).
Please help. Thanks.
- Nihar
DB2 & UDB email list listserv db2-l LazyDBA home page