Sorry; long commute today.

Hmmm... looks OK to me. I noticed in the documentation that if INCDIR is
used on the compile listing, the INCLUDE variable is ignored. You don't
happen to have that, implicitly somehow or explicitly, do you? The compile
listing will tell you, on the first page, where it says "Include directory:'
(should be *NONE)

Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
The best way to save face is to keep the lower part full


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/bi
n
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].