I followed the intructions in the article mentioned below to setup DB2 with GCC.
Article: Compiling DB2 UDB Stored Procedures with GCC on Windows
Link:
http://www.ibm.com/developerworks/db...306haungs.html
But I still can't create stored procedure.
I see the following error when I run sample procedure from the above article.
>db2 -td! -v -fsample.clp
I get a message "ERROR [42904] [IBM][DB2/NT] SQL7032N SQL procedure "TestProcedure" not created. Diagnostic file is "P4113320.log". SQLSTATE=42904"
Error in Log:
/usr/bin/dllwrap: /usr/bin/gcc exited with status 1
And I don't see the .o or .dll file created.
But when I run c:\bin\db2gcc.bat P4113320
The .o and .dll get generated.
Thanks
RJ