Kbase 20499: Setting C Compiler Variables & Version Information
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  16/10/2008 |
|
Status: Verified
GOAL:
Setting C Compiler Variables & Version Information
GOAL:
How to set environment for Probuild and the C compiler.
GOAL:
What is Probuild?
FACT(s) (Environment):
All Supported Operating Systems
Progress/OpenEdge Versions
FIX:
PROBUILD is a utility that allows to create customized executables. In order to build the customized executable, a C compiler must be installed on the OS. Most OS vendors supply, bundle and install a C compiler on the OS. Given that the link script includes all object files created by PROBUILD, the scripts depends on the C compiler's ability and inability to work efficiently, ultimately creating a reliable and successful executable.
Customers may have multiple C compilers on their systems. To distinguish between compilers (and or debugging purposes), they can set a environment variable (CC) to the compiler executable/script. This variable can be set like any other environment variable on UNIX.
CC=<C compiler directory>/cc
Another way to specify the compiler is to set CC to the cc script (or equivalent) and put the <C compiler>/bin directory in the PATH environment.
For example, if your C compiler is installed under /opt/ansic:
CC=cc;export CC
PATH=/opt/ansic/bin:$PATH;export PATH
Please note that this environment variable needs to be set before executing the link script.