Chapter Contents |
Previous |
Next |
SAS/C Cross-Platform Compiler and C++ Development System User's Guide, Release 6.50 |
Configuring Compile and Prelink Options |
The following example uses a project named
ftoc
. Use the following procedure to configure the compile and prelink options for the
ftoc
project in Microsoft Visual C++:
Build
menu.
Set Active Configuration
.
ftoc-Win32 Release
project configuration.
Project
menu.
Settings
option.
general
tab.
C/C++
tab.
/ML
.
The SAS/C C and C++ compiler ignores the
/ML
option. Also, the Microsoft Visual C++ compiler options in Recognized Microsoft Visual C++ Compiler Options
are interpreted as valid SAS/C cross-platform compiler
options.
In the Project Options field, you can add any of the SAS/C C and C++ compiler options that are listed in
Compiling C and C++ Programs
. For example, to specify verbose commands, automatic instantiation of class templates, run-time type identification, and
reentrant code generation, add the
-v
,
-Kautoinst
,
-Krtti
, and
-Krent
options for
sascc370
.
Delete all the project options under the Project Settings Link tab except for
/incremental:no
,
/pdb:"ftoc.pdb"
, and
/machine:IX86
. The
sascc370
driver ignores these three options.
Specify the name of the prelinked output file in the
Output file name
field. In this example, although the input object filename,
ftoc.o
, is located in directory
D:\Program Files\DevStudio\MyProjects\temperature
, the
Object/library modules
field does not contain the fully qualified object file pathname. Add any
sascc370
driver options for prelinking, such as
-v
, to the Project Options field. The
Project Options
field should appear as
ftoc.o /incremental:no /pdb:"ftoc.pdb" /machine:IX86 /out:"ftoc" -v
.
For each source file in the Settings For text box in the Project Settings dialog box, you can set options at the source file level.
sascc370
options for
the compiler that are to be allocted to the selected source file. These
driver options are not defined by the Microsoft IDE, and are only
applicable to sascc370
. A /U
will prefix any options entered into this
area when viewed in the Source File Options text box.
The sascc370
driver ignores the /U
, and
passes any associated options to the
appropriate phases of compilation.
Compiling and Prelinking Object Code |
To compile and prelink the source code, select the
Build ftoc
item from the
Build
menu. SAS/C C and C++ generate a compiled object file,
ftoc.o
, and a prelinked output file,
ftoc
. Any execution messages or error diagnostics are displayed in the Output view. For this example, when building
ftoc.cxx
, the output window should contain something like the output in Example output window contents
:
Example output window contents
- - - - - - - - - - Configuration: ftoc - Win32 Release - - - - - - - - - - Compiling... SAS/C Compiler Driver V6.50.01 Copyright (C) 1998 SAS Institute Inc. set INCLUDE370='d:\Program Files\SASC\Include' "d:\Program Files\SASC\host\wnt\bin\cxx" -Adigraph1 -Adigraph2 -DCROSS370=l -XA -Hu '-r' '-Arrti' '-MC:\TEMP\sascca00319.1.ai' 'mftoc' "D:\Program Files\Dev\Studio\MyProjects\temperature\ftoc.cxx" "C:\TEMP\sascca00319.1.c" sascc370: Invalid '/FoRelease' ignored SAS/C C++ 6.50.01 (Mar 2 1998) Copyright (C) 1998 SAS Institute Inc. "d:\Program Files\SASC\host\wnt\bin\lc1" -dCROSS370=1 -cd -hu -n! '-r' -cxx -d__CXX_PRIMARY__=1 -q011=1 '-sftoc' -xc "-oC:\TEMP\sascca00344.1.q" "C:\TEMP\sascca00319.1.c" SAS/C Release 6.50.01 (Target 370 Cross Compiler) Copyright (c) 1998 by SAS Institute Inc. All Rights Reserved. *** No errors; No warnings; No user suppressed warnings "d:\Program Files\SASC\host\wnt\bin\lc2" "-oC:\TEMP\sascca00319.1.o" "C:\TEMP\sascca00319.1.q" SAS/C Compiler (Phase 2) Release 6.50.01 Copyright (c) 1998 by SAS Institute Inc. All Rights Reserved. "d:\Program Files\SASC\host\wnt\bin\sheller" -c -o ftoc.o @C:\TEMP\sascca00319.1.shell You have selected the SAS C/C++ Cross Platform Compiler Linking... SAS/C Compiler Driver 6.50.01 Copyright (c) 1998 SAS Institute Inc. set INCLUDE370='d:\Program Files\SASC\Include' "d:\Program Files\SASC\host\wnt\bin\cool" -o "ftoc" -L"d:\Program Files\SASC" ftoc.o "d:\Program Files\SASC"\lib\libcxx.a "d:\Program Files\SASC"\lib\mvs\libc.a SAS/C (R) C Object code Pre-Linker Release 6.50.01 Copyright (c) 1998 by SAS Institute Inc. All Rights Reserved. cool: Note 1010: Pre-Linking completed with return code = 0 You have selected the SAS C/C++ Cross Platform Linker ftoc - 0 error(s) 0 warning(s) |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright © 1998 by SAS Institute Inc., Cary, NC, USA. All rights reserved.