Compile instruction

 


  1. Using MS Visual C++ 6.0 to open the workspace file, SAX.dsw

  2. Set up for using winpcap library:

    1. In project setting à C/C++, add WPCAP in the Preprocessor definition.

    2. In project setting à Link, add wsock32.lib and wpcap.lib to the library module.

    3. In Tools à Option à Directories, add the path to wpdpack\include for include files, add the path to wpdpack\lib for library files. Note that the wpdpack folder is in SAX folder.

  3. Set up for using Stlport library:

    1.  In Tools à Option à Directories, add the path to STLport-4.6.2\stlport for the include files. REMEMBER TO PUT THE PATH OF STLPORT ON THE TOP OF YOUR LIST.

    2. In Tools à Option à Directories, add the path to STLport-4.6.2\lib for the library files.

  4. Compile the program: In MS Visual C++ 6.0, go to Build à Rebuild all to compile the program. Note that, in order to run the program, you must put packet.dll, wanpacket.dll and wpcap.dll in the same folder with SAX.exe. Besides, winpcap is needed to run SAX online.


Tran Dinh Nguyen 16-08-2005