|
|
|
|
The first thing you need to do is edit the bin-os2\set-vars.cmd script file to reference the location where you have installed the files, and the locations where all your compilers are installed. See the comments in set-vars.cmd for more information.
Once you have the startup file configured, you then need to run the following each time you start a command shell to enable the SciTech makefile utilities (a good idea to put into your startup batch files):
call c:\scitech\bin-os2\set-vars.cmd
call c:\scitech\bin-os2\wc11-o32.cmd
The second batch file sets up the compiler configuration for your default compiler. The line above sets up for Watcom C++ 11.0 32-bit OS/2 compilation. Substitute this for any of the batch files in the bin directory for the compiler you are using. You can choose from the following batch files to configure the build environment for different supported compilers:
32-bit OS/2 GUI support: |
|
emx-p32.cmd |
GNU C++ (emx) Presentation Manager programs |
va30-p32.cmd |
IBM VisualAge for C++ 3.0 Presentation Manager programs |
va36-p32.cmd |
IBM VisualAge for C++ 3.65 Presentation Manager programs |
wc10-w32.cmd |
Watcom C++ 10.6 GUI Presentation Manager programs |
wc11-w32.cmd |
Watcom C++ 11.0 GUI Presentation Manager programs |
32-bit OS/2 console support: |
|
emx-o32.cmd |
GNU C++ (emx) console programs |
va30-o32.cmd |
IBM VisualAge for C++ 3.0 console programs |
va36-o32.cmd |
IBM VisualAge for C++ 3.65 console programs |
wc10-w32.cmd |
Watcom C++ 10.6 GUI console programs |
wc11-w32.cmd |
Watcom C++ 11.0 GUI console programs |
Note also that once you have properly set up the makefile utilities, you can switch between different compilers from the command line simply by calling one of the above batch files. This makes it easy to test and compile your own code with multiple compilers on a single machine.
Note: In order for any of the OS/2 sample programs to run, you must have the SDDHELP.SYS device driver loaded. Hence ensure you add this device driver to your CONFIG.SYS file and then reboot in order to start using the SNAP SDK programs. This file is also distributed along with the old SciTech Display Doctor for OS/2 as well as the more recent SciTech SNAP Graphics for OS/2 products.
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com