Predefined macro names for machine dependent compilation

U

utab

Dear all,

I was looking at a simple code on an exercise question. In the code,
there is a conditional inclusion dependent on __GNUC__

#include <algorithm>
#include <iomanip>
#ifndef __GNUC__
#include <ios>
#endif

How can I get system specific macro names, like __GNUC__, for the
system I am working on. I do not need this but I was curious about it,
and googled for it but I have always found things related to
conditional compilation. If I am not mistaken, these are the names of
macros defined, correct me if I am wrong.

I use Debian Etch and gcc 4.1.12. Is there a way to get them directly
from command like, maybe this is off-topic :S

Regards, Umut
 
V

Victor Bazarov

utab said:
I was looking at a simple code on an exercise question. In the code,
there is a conditional inclusion dependent on __GNUC__

#include <algorithm>
#include <iomanip>
#ifndef __GNUC__
#include <ios>
#endif

How can I get system specific macro names, like __GNUC__, for the
system I am working on.

If the preceding sentence were a question, I'd answer it with "RTFM".
Your system and the compiler are supposed to come with a manual. So,
R it.
I do not need this but I was curious about it,
and googled for it but I have always found things related to
conditional compilation. If I am not mistaken, these are the names of
macros defined, correct me if I am wrong.

I use Debian Etch and gcc 4.1.12. Is there a way to get them directly
from command like, maybe this is off-topic :S

What does it mean "to get them directly from command like" (and even if
you meant "line")?

V
 
U

utab

If the preceding sentence were a question, I'd answer it with "RTFM".
Your system and the compiler are supposed to come with a manual. So,
R it.



What does it mean "to get them directly from command like" (and even if
you meant "line")?

V

Sorry for my English, I will check the documentation of the compiler.
Thanks :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top