Building Your Own Program From A Command Line - Intermec 5055 Reference Manual

Programmer's software kit
Hide thumbs Also See for 5055:
Table of Contents

Advertisement

Building Your Own Program From a Command Line

You can build your program from the command line (DOS prompt) instead of from
within the Microsoft Visual C/C++ environment. Your
compile options for the application to run on the 5055.
CFLAGS Settings Required for a Successful Compile
Setting
/G3
/FPi
/AL
The following examples show the correct settings to use. Refer to your C/C++
documentation for more information on make files, command files, and batch files.
TMP.MAK
# Microsoft Visual C++ generated build script - Do not modify
PROJ = DEMO
DEBUG = 0
PROGTYPE = 6
CALLER =
ARGS =
DLLS =
D_RCDEFINES = -d_DEBUG
R_RCDEFINES = -dNDEBUG
ORIGIN = MSVC
ORIGIN_VER = 1.00
PROJPATH = D:\5055\SOURCE~1\
USEMFC = 0
CC = cl
CPP = cl
CXX = cl
CCREATEPCHFLAG =
CPPCREATEPCHFLAG =
CUSEPCHFLAG =
CPPUSEPCHFLAG =
FIRSTC = DEMO.C
FIRSTCPP =
RC = rc
CFLAGS_D_DEXE = /nologo /G2 /W3 /Zi /AM /Od /D "_DEBUG" /D "_DOS" /FR
/Fd"DEMO.PDB"
CFLAGS_R_DEXE = /nologo /Gs /G3 /W3 /AL /Ox /D "NDEBUG" /D "_DOS" /FR
LFLAGS_D_DEXE = /NOLOGO /NOI /STACK:5120 /ONERROR:NOEXE /CO
LFLAGS_R_DEXE = /NOLOGO /NOI /STACK:5120 /ONERROR:NOEXE
LIBS_D_DEXE = oldnames mlibce
LIBS_R_DEXE = oldnames im5055
RCFLAGS = /nologo
RESFLAGS = /nologo
Meaning
Target CPU is an 80386 processor. If you omit the /G switch, the build
defaults to /G0. Using any other /G setting will cause failure that is difficult
to debug.
Use alternate math for the floating point calls. This switch is required. Any
other /FP setting will cause failure.
Use large memory model. This switch is required.
Building Applications
file must set the correct
*.MAK
3
3-5

Advertisement

Table of Contents
loading

Table of Contents