Dennis Lovelady <iseries@...> writes:


Will you please show us what your ADDENVVAR command looks like, and or the
output from:

QSH CMD('env > /tmp/my-environment.txt')

Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
"If you steal something small you are a petty thief, but if you steal
millions, you are a gentleman of society."
-- Greek Proverb
"We hang the petty thieves and appoint the great ones to public office."
-- Aesop

I am attempting to compile a C++ module (on a V5R3 box)
with the source code in the IFS. According to the "ILE C/C++
Programmers' Guide" (Version 5; SC09-2712-05) an include directory can
be specified using INCDIR (Include Directory) command parameter or
INCLUDE environment variable.

The problem is:
1. when I specify the include directory in the INCDIR parameter the
module is created; no problem;
2. when I specify the include directory using the INCLUDE environment
variable the compilation fails;



Dennis,

0. ADDENVVAR command:

ADDENVVAR ENVVAR(INCLUDE)
VALUE('./include')
REPLACE(*YES)

1. my-environment.txt output:

ICU_DATA=/QIBM/ProdData/OS400/icu/data
PASE_PATH=/QOpenSys/usr/bin:/usr/ccs/bin:/QOpenSys/usr/bin/X11:/usr/sbin:.:/usr
/bin:/QOpenSys/usr/local/bin:/QOpenSys/usr/local/bin/pgp-6.5.8:/usr/local/bin
INCLUDE=./include
QIBM_USE_DESCRIPTOR_STDIO=Y
TRACEOPT=UNLINK
QIBM_DESCRIPTOR_STDERR=CRLN=N
QIBM_DESCRIPTOR_STDOUT=CRLN=N
QIBM_DESCRIPTOR_STDIN=CRLN=Y
LOGNAME=my_user
SHLVL=1
HOSTTYPE=powerpc
HOSTID=my_IP
HOSTNAME=my_host_name
OSTYPE=os400
OSTYPE=os400
MACHTYPE=powerpc-ibm-os400
TERMINAL_TYPE=PIPELINE
HOME=/my_dir
PATH=/usr/bin:


Thanks,
Darek




This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].