473,386 Members | 1,775 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

#pragma dictionary directive in Linux?

arunmib
104 100+
hi,
I would like to know whether "#pragma dictionary" exists in Linux. I have read that this is an ANSI equivalent of "#dictionary" concept present in OpenVMS system. In the following link it has been mentioned that "#pragma dictionary" is ANSI C complaint,

http://docshare.isti.cnr.it/cgiplus-...ww.google.com/

They have not mentioned whether it is portable or existing in other systems. When I spoke with one of my colleague he said that "dictionary" concept is not present in Linux.....So, can anybody help me out?

An advance thanks for the help and information ppl...
Nov 14 '07 #1
3 3368
weaknessforcats
9,208 Expert Mod 8TB
It's nothing to do with Linux. A #pragma is a preprocessor directive and it should be in the documentation for your compiler.

Please note the #pragma operands do vary by preprocessor.
Nov 14 '07 #2
arunmib
104 100+
Thanks for the reply weaknessforcats.....The #dictionary that I have mentioned refers to the Common Data Dictionary(CDD) concept of OpenVMS. The "#pragma dictionary" that I have asked is the ANSI C equivalent, but my question was whether the CDD concept is present in Linux. I think I didn't frame my question clearly....I posted the same question in another forum and following is a reply I got,

The #pragma dictionary directive exists to allow the compiler
to extract records from an OpenVMS Common Data
Dictionary.

The OpenVMS Common Data Dictionary is something
specific to OpenVMS, and would not be available on
Linux..

You may be able to workaround this by having the OpenVMS
C compiler extract the definitions: Add /PREPROCESS_ONLY
to the command line....this will create a .I file. Look in the
.I file for the defintions exctracted by the #pragma dictionary
directive, and move them to a header file. Then move that
header file to the Linux system and #include it as you would
any other file.

I say "may" because I've never used this directive, so it may
not work....

Hope this information is of use to somebody, other than me also...
Nov 15 '07 #3
weaknessforcats
9,208 Expert Mod 8TB
The #pragma dictionary directive exists to allow the compiler
to extract records from an OpenVMS Common Data
Dictionary.
That's what I was saying. There is no dictionary with Windows so that code would just die with an invalid preprocessor directive.

You have to go with your compiler documentation. That documentation is for that compiler.
Nov 15 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Jacob Jensen | last post by:
Hi I have a problem creating C++ code that is multiplatform compilable. My problem is using the "#pragma once" directive which can be used by microsoft Visual Studio pre-compiler but which gives...
6
by: Shri | last post by:
Can anybody tell me where i can find a detailed document on #pragma .... --shri
6
by: Stefan Slapeta | last post by:
The following linker directive #pragma comment (linker, "/delayload:xy.dll") which was valid in VC 6 produces just a warning in VC 7.1 (though the directive is ok, IMO). Is this fixed in...
11
by: ramu | last post by:
HI, Can anyone tell me about pragma? And can u give an example of how to use it?
15
by: muttaa | last post by:
Hello all, I'm a beginner in C...May i like to know the difference between a #pragma and a #define.... Also,yet i'm unclear what a pragma is all about as i can find topics on it only in...
8
by: rwen2012 | last post by:
Hi, guys, I am confused with the preprocessor instruction #pragma. What does the #pragma mean? and what does this mean as follow? ==================== #pragma intterupt Timer...
26
by: Rick | last post by:
I'm told that "#pragma once" has made it into the ISO standard for either C or C++. I can't find any reference to that anywhere. If it's true, do any of you have a reference I can use? ...
2
by: aleemakhtar1 | last post by:
wat is use of pragma directive in embedded sys ??
0
debasisdas
by: debasisdas | last post by:
PRAGMA:-Signifies that the statement is a pragma (compiler directive). Pragmas are processed at compile time, not at run time. They pass information to the compiler. A pragma is an instruction to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.