Hello,
I'm wondering, is #warning preprocessor command is documented in
standart C
or it's implementation specific? I cannot find any documentation about
it.
It works with gcc on freebsd and linux.
--
Dmitri 7 4888 dd*******@gmail .com wrote: Hello,
I'm wondering, is #warning preprocessor command is documented in standart C or it's implementation specific? I cannot find any documentation about it. It works with gcc on freebsd and linux.
Standard C defines the #error directive, #warning is a GNU extension.
Robert Gamble dd*******@gmail .com writes: I'm wondering, is #warning preprocessor command is documented in standart C or it's implementation specific? I cannot find any documentation about it. It works with gcc on freebsd and linux.
It's implementation specific.
The standard preprocessor directives are:
#include
#define
#undef
#line
#error
#pragma
#
The latter is a null directive; it has no effect.
--
Keith Thompson (The_Other_Keit h) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Keith Thompson wrote: dd*******@gmail .com writes: I'm wondering, is #warning preprocessor command is documented in standart C or it's implementation specific? I cannot find any documentation about it. It works with gcc on freebsd and linux.
It's implementation specific.
The standard preprocessor directives are:
#include #define #undef #line #error #pragma #
The latter is a null directive; it has no effect.
#if, #ifdef, #ifndef, #elif, #else, and #endif are preprocessing
directive too.
Robert Gamble
"Robert Gamble" <rg*******@gmai l.com> writes: Keith Thompson wrote: dd*******@gmail .com writes: > I'm wondering, is #warning preprocessor command is documented in > standart C or it's implementation specific? I cannot find any > documentation about it. It works with gcc on freebsd and linux.
It's implementation specific.
The standard preprocessor directives are:
#include #define #undef #line #error #pragma #
The latter is a null directive; it has no effect.
#if, #ifdef, #ifndef, #elif, #else, and #endif are preprocessing directive too.
Sure, but they don't really count, because they aren't on the page I
was looking at.
In other words, oops.
--
Keith Thompson (The_Other_Keit h) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Keith Thompson wrote: "Robert Gamble" <rg*******@gmai l.com> writes: Keith Thompson wrote: dd*******@gmail .com writes: I'm wondering, is #warning preprocessor command is documented in standart C or it's implementation specific? I cannot find any documentation about it. It works with gcc on freebsd and linux. It's implementation specific.
The standard preprocessor directives are:
#include #define #undef #line #error #pragma #
The latter is a null directive; it has no effect. #if, #ifdef, #ifndef, #elif, #else, and #endif are preprocessing directive too.
Sure, but they don't really count, because they aren't on the page I was looking at.
In other words, oops.
I would have made that "those are not in *my* copy of the standard".
The requisite follow-up could have included a dog.
S.
Skarmander <in*****@dontma ilme.com> writes: Keith Thompson wrote: "Robert Gamble" <rg*******@gmai l.com> writes: Keith Thompson wrote: dd*******@gmail .com writes: > I'm wondering, is #warning preprocessor command is documented in > standart C or it's implementation specific? I cannot find any > documentation about it. It works with gcc on freebsd and linux. It's implementation specific.
The standard preprocessor directives are:
#include #define #undef #line #error #pragma #
The latter is a null directive; it has no effect. #if, #ifdef, #ifndef, #elif, #else, and #endif are preprocessing directive too. Sure, but they don't really count, because they aren't on the page I was looking at. In other words, oops. I would have made that "those are not in *my* copy of the standard".
The requisite follow-up could have included a dog.
Yes, the dog (well, more likely a cat) ate that page of my PDF file.
--
Keith Thompson (The_Other_Keit h) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Robert Gamble wrote: dd*******@gmail .com wrote: Hello,
I'm wondering, is #warning preprocessor command is documented in standart C or it's implementation specific? I cannot find any documentation about it. It works with gcc on freebsd and linux. Standard C defines the #error directive, #warning is a GNU extension.
Thanks. Robert Gamble
Dmitri This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Bram Stolk |
last post by:
Hi there,
What could I use to parse CPP macros in Python?
I tried the Parnassus Vaults, and python lib docs, but could not
find a suitable module.
Thanks,
Bram
|
by: Boris Kuznetsov |
last post by:
This occurs in an empty project when I add the following string:
#using <mscorlib.dll>
Can anyone tell me why would #using ... not be working???? MSDN says nothing
about this error.
Please advice what to do??
mailto:
doberman@nest.ntu-kpi.kiev.ua
|
by: Paolo |
last post by:
I imported a VC++6.0 project into VC++7.1. The conversion operation makes a mess with Preprocessor Definitions, adding a "$(NoInherit)" for each file.
For example: I had a DLL project in VC++6.0 where the definitions were:
_UNICODE,_DEBUG,_WIN32_DCOM,WIN32,_WINDOWS,_WINDLL,_AFXDLL,_USRDLL
In VC++7.1, these are the preprocessor definitions...
|
by: Brett |
last post by:
I have recently purchased Visual C++ . Net compiler and i am trying to
compile a project that i had working in Visual C++ 6.0.
When I compile, I am receiving the warning:
cl : Command line warning D4025 : overriding '/EHs' with '/EHa'
I have specifically asked for the /EHsc switch because that is what I
require.
|
by: SenthilVel |
last post by:
Hi
I am in the Process of conversion of my existing 1.1 Dotnet Code to 2.0
framework.
for each project when i compile in VS2005 , i get this error\warning:
Use command line option '/keyfile' or appropriate project settings instead
of 'AssemblyKeyFile'
| |
by: SenthilVel |
last post by:
Hi
I am in the Process of conversion of my existing 1.1 Dotnet Code to 2.0
framework.
for each project when i compile in VS2005 , i get this error\warning:
Use command line option '/keyfile' or appropriate project settings instead
of 'AssemblyKeyFile'
|
by: Bogdan |
last post by:
Can anyone recommend a program for indentation of C preprocessor
directives. My file looks like this:
#ifdef a
#define b
#else
#define c
#endif
int main()
{
|
by: Tom Baxter |
last post by:
I just set up VS 2008 B2 and did a simple command line compile from the VS
command prompt.
I received this warning:
warning CS1668: Invalid search path 'C:\Program Files\Microsoft
SDKs\Windows\v6.0A\lib' specified in 'LIB environment
variable' -- 'The system cannot find the path specified. '
When I checked, sure enough, the "lib"...
|
by: Bob |
last post by:
Hi,
Is it possible to change the references in a project based upon
changing preprocesor symbols?
Thanks,
Bob
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |