Compiling the Servlet
The specific compiler flags required vary by platform and by whether the servlet is compiled in release mode or debug mode. In all cases, the servlet must be compiled into a shared library. The compiler and linker must use the same compiler and linker flags as were used to compile the servlet container.
The <installdir>\examples\servlet\12d directory contains a sample makefile that compiles all of the example servlets in release mode. The sample makefile in the <installdir>\examples\servlet\15d directory compiles the example servlets in debug mode.