Consider the following points when you develop your applications. They will help make your applications portable:
set LIB=%DB2PATH%\lib;%LIB%
Also, create symbolic links between the default path and the version of DB2 you are using. Ensure that the link is to the minimum level of DB2 required by your applications. Refer to the Quick Beginnings book for your platform for information about setting links.
If you have DB2 Version 1 applications which use unsigned char, your compiler might produce warnings or errors because of type clashes between unsigned char in Version 1 applications and char in Version 6.1 or Version 7.1 function prototypes. If this occurs, use the compiler option -DSQLOLDCHAR to eliminate the problem.