Intermec 5055 Reference Guide

Page of 216
5055 Programmer’s Software Kit Reference Manual
3-4
Building Your Own Program
You need to set several project and compiler options when you build your own
programs. The sample programs include these settings in the 
*.MAK
 files.
Make sure that your source code uses only the Intermec-certified C functions. If you
use uncertified functions, the link operation will fail. See Chapter 2, “Programming
Guidelines,” for a list of certified C functions.
Use the Project Settings checklist following this procedure to set the environment for
building PSK applications in Microsoft Visual C/C++. Appendix B, “Microsoft Visual
C/C++ Settings,” shows the related dialog boxes for these settings.
To build your own program
1. Start Visual C/C++.
2. Create a new project.
3. Use the project settings checklist to set the compiler and linker options.
4. From the Project menu, choose Build.
5. Run and debug the program.
6. Download the application to the 5055. See the procedure in “Using the Serial Port
to Transfer Applications and Files” later in this chapter.
7. Run the application on the 5055.
Project Settings Checklist
Dialog Box or Command
For This Variable
Select This Setting
Done?
Project Options
Project Type
MS-DOS application
Y
Use Foundation Classes
uncheck
(turn off foundation classes)
Y
Compiler Options
Code generation:
CPU
Floating Point Calls
80386
Use Emulator
Y
Memory Model
Large
Y
Segment
SS == DS
Y
Linker Options
Libraries
oldnames, im5055.lib
Y
Directories
Include File Path
\INTERMEC\IMT5055\INCLUDE
must be listed first, followed by
\MSVC\INCLUDE
Y
Library File Path
\INTERMEC\IMT5055\LIB
must be listed first, followed by
\MSVC\LIB
Y