[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: #include problems
- Subject: Re: #include problems
- From: Stan Quick <stanley.quick@BRIO.COM>
- Date: Thu, 24 May 2001 05:53:58 -0700
A couple of work-arounds (and I am sure you will get more).
1) Use the Define command
#define SQR$ d:\\APP_ZVT\Env_develop\Version_1\SQR\
#include '{SQR$}xxx.inc'
2) Map to the directory as another drive (For example, map to
d:\\APP_ZVT\Env_develop\Version_1\SQR\ as s:
then, #include 's:xxx.inc', or
-Is:\
This option is actually the closest to the functionality found in
VMS.
Stan
-----Original Message-----
From: marina lifshits [mailto:marina.l@ZIM.CO.IL]
Sent: Thursday, May 24, 2001 7:14 AM
To: SQR-USERS@list.iex.net
Subject: #include problems
Hello all !
Subject : #include problems during conversion
from SQR 4.0 in VAX/VMS to SQRW Win 95/98/NT.
In our VAX/VMS SQR programs, we have following #include
#include 'sqr$:xxx.inc'
SQR$ - environment logical variable for VAX/VMS directory :
show LOG SQR$
"SQR$" = "ZVTORA$DISK:[ZVTORA.APP.SQR]"
We have defined the same environment variable SQR$ for PC :
D:\APP_ZVT\Env_develop\Version_1\SQR\
and tried different ways .
1.Using -I flag as following :
-ISQR$
-Iname_in(‘SQR$’)
-I%SQR$% , etc .
In the SQR program, we changed the above to:
#include 'xxx.inc'
2.Using env.variable directly as following :
#include ‘sqr$:xxx.inc’
#include ‘%sqr$%:xxx.inc’
#include ‘%sqr$%xxx.inc’ , etc .
In all cases we got the error:
Cannot open the #INCLUDE file ...
No such file or directory
Please help .
Tnks.