Problem:
Compiling a DB2 application with Net Express WrapPack 4 returns an RTS173 error against "hcgetenv".
Compiling a DB2 application with Net Express WrapPack 4 returns errors regarding missing entry points in DB2AGAPI.DLL
If working with DB2 UDB Version 8, you may encounter issues compiling applications with the DB2 compiler directive.
This issue does not occur when using DB2 UDB Version 8 FixPak 15, nor with DB2 v9 or later.
Resolution:
Due to changes implemented to the DB2 support within Net Express WrapPack 4, you may find that compiling applications using DB2 UDB Version 8 will fail.
To resolve this, you will need to upgrade your DB2 installation to the latest IBM FixPak. You can access downloads from the IBM website (currently at http://www-1.ibm.com/support/docview.wss?rs=71&uid=swg21256059 ).
Having applied this FixPak, compilation and execution will then work as expected.