Compiling C code on Windows 7 for DB2 9.7 64bit


The %DB2PATH%\SQLLIB\samples\c directory on windows contains many examples of C routines to extend DB2 or to work with DB2 from C programs. This article describes how to compile the sample code for 64 bit.


  • Set the environment (VC includes the batch file that allows to set the environment variable): C:\progra~2\micros~2.0\vc\vcvarsall.bat x64

Error: kernel conflicts with e2fsprogs < 1.37-4

During an audit, we noticed that one of our Red Hat 5 / CentOS 5 servers wasn’t getting the security patches.  Upon running the yum update command manually, we discovered that it fails with:

Error: kernel conflicts with e2fsprogs < 1.37-4

The problem turned out to be the presence of a number if 32bit packages. To solve it, we removed the 32bit architecture packages with:

yum remove *.{i386,i586,i686}

(only do that if you are on x86_64 and you verified that the packages you need are present in 64bit version)