Preparing the Sample Application
The files used in this tutorial are in the
src
directory, but will all be built using the
Makefile
in the root directory of this sample.
Setting the Environment Variables
Before you can use the compiler, you must first set the environment variables by running the compiler environment script
compilervars.sh
or
compilervars.csh
with an argument that specifies the target architecture.
To set the environment variables:
- Open a terminal session.
- Run one of the scripts with the appropriate architecture argument. The following example usescompilervars.sh:source <install-dir>/bin/compilervars.sh <arg>where<install-dir>is the directory structure containing the/bindirectory and<arg>is one of the following architecture arguments:ia32Compiler and libraries for IA-32 architecture onlyintel64Compiler and libraries for Intel® 64 architecture onlyIA-32 is not available on macOS*.