# PN5_60929

Updated: 1/18/2022, 5:31:44 PM
Created: 1/18/2022, 5:31:44 PM
Last Updated By: dependabot[bot]
Read Time: 1 minute(s)

# Description

Add the JBC_INCLUDE_PATH and JBC_INCLUDE_FILE environment variables to the compiler.

# Previous Release Behavior

Neither of these environment variables existed. However, the environment JBC_USER_INCLUDE is a similar environment variable but this went "missing" when the new pre-processor was introduced and the new JBC_INCLUDE_FILE is of similar, but enhanced, functionality.

# Current Release Behavior

The JBC_INCLUDE_PATH environment variable allows you to pre-define one or more directories / folders where you can search for an INCLUDE file. The directory/folder names are delimited by : (colon) on Linux/AIX and by ; (semi-colon) on Windows.

For example:

export JBC_INCLUDE_PATH=$HOME/include:/usr/include/myincludes
1

Means that the compiler, when a INCLUDE statement is seen, will search $HOME/include and then /usr/include/myincludes to find the INCLUDE'd file.

The JBC_INCLUDE_FILE is one or more source names that will get automatically compiled prior to the usual jBC or jabbascript being compiled. It is a list of files delimited by : (colon) on Linux/AIX and by ; (semi-colon) on Windows.

For example:

set JBC_INCLUDE_FILE=%HOME%\COMMON;BP USERCOMMON
1

is the equivalent of adding these two lines of code to the top of every source that is compiled.

INCLUDE C:\Home\Greg\COMMON
INCLUDE BP USERCOMMON
1
2

Back to 5.7.6 Release Notes