- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: how to use system_logical_name with #include d...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2005 12:35 AM
тАО01-17-2005 12:35 AM
how to use system_logical_name with #include declare?
now i have defined a logical_name is APPDIR
$define/system APPDIR "sys$sysdevice:[project]"
and declared in my c source file below:
#include "APPDIR:time.h"
but thrown "can't open APPDIR:time.h or file no found" message when i make
why the compiler can't translate logical name to real path? how i can use logical name with include declare?
help!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2005 12:49 AM
тАО01-17-2005 12:49 AM
Re: how to use system_logical_name with #include declare?
You should use the U**x syntax:
#include
Regards,
Kris (aka Qkcl)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2005 01:05 AM
тАО01-17-2005 01:05 AM
Re: how to use system_logical_name with #include declare?
However, when the file is not found I do not get an error message like that. It would be useful to see exactly what error you are getting.
Also, "time.h" is one of the standard header files. It might be interesting to see if you get the same problem with a file with a unique name.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2005 01:15 AM
тАО01-17-2005 01:15 AM
Re: how to use system_logical_name with #include declare?
As a variant, you can use also the /INCLUDE_DIRECTORY qualifier of the CC command. You can specify many directories which will be searched for the include file. The second variant is to define DECC$USER_INCLUDE (for #include "") or the DECC$SYSTEM_INCLUDE (for #include <>) logical name with one or more directories to search for include files.
Examples:
$ CC /INCLUDE_DIRECTORY=sys$sysdevice:[project] my.c
for the second
$ DEFINE DECC$USER_INCLUDE sys$sysdevice:[project]
$ CC my.c
In both variants you then use the:
#include "time.h"
(without APPDIR) for including files. This is similar to the UNIX -I qualifier.
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2005 02:16 AM
тАО01-17-2005 02:16 AM
Re: how to use system_logical_name with #include declare?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2005 02:19 AM
тАО01-17-2005 02:19 AM
Re: how to use system_logical_name with #include declare?
http://forums1.itrc.hp.com/service/forums/helptips.do?#33
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2005 07:17 AM
тАО01-17-2005 07:17 AM
Re: how to use system_logical_name with #include declare?
Welcome to VMS, also from me.
Reading Ian's post, I lookup up your Forum Profile.
"I have assigned points to 0 of 22 responses to my questions. "
So, I thought maybe I should explain some more.
on giving points:
try to give points to EVERY answer to your questions!
It is fully up to you HOW MANY, and you can just give 0 (zero) if you think you don't want to give more.
Any assignment, including zero, removes the "unassigned" header.
It is reflected in your Forum Profile.
If you do not know that yet, then click your own name (in the questions summary, in your question header, in the header of any of your replies).
In your profile you will notice how many answers you have assigned to, from how many total.
If you somehow want more info on any other Forum user, it is basically the same.
( and hey, we have all begun as newbies, most of us stumbled over this! )
Proost.
Have one on me.
Jan