From: Sergei Dolmatov <sergei@dolmatov.dsb.ru>
To: Community@altlinux.ru
Subject: Re: [Comm] В какой ОС происходит компиляция?
Date: Thu, 16 Jan 2003 18:18:35 +0800
Message-ID: <20030116101835.GA5275@dolmatov.dsb.ru> (raw)
In-Reply-To: <3E26814D.1030402@rmts.donpac.ru>
On Thu, Jan 16, 2003 at 12:54:21PM +0300, Прокопьев Евгений wrote:
> Здравствуйте!
>
> Есть программа на С++, в которой не используется ничего
> платформеннозависимого, т.е. только #include <iostream> и пр.
>
> Есть ли define, позволяющая определить, под какой ОС происходит
> компиляция (знаю про __WIN32__, а что есть аналогичного для Linux)? И
> как узнать, на каком компиляторе происходит сборка?
~ $ gcc -E -dM -x c /dev/null
и посмотреть в списке, что больше подходит.
--
Regards,
Sergei Dolmatov.
---
Simulations are like miniskirts, they show a lot and hide the essentials.
-- Hubert Kirrman
next prev parent reply other threads:[~2003-01-16 10:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-16 9:54 Прокопьев Евгений
2003-01-16 10:18 ` Sergei Dolmatov [this message]
2003-01-16 10:21 ` [Comm] ÷ ËÁËÏÊ ïó ÐÒÏÉÓÈÏÄÉÔ ËÏÍÐÉÌÑÃÉÑ? Yuri Rychkov
2003-01-16 10:27 ` [Comm] В какой ОС происходит компиляция? Alexey Voinov
2003-01-16 11:37 ` Прокопьев Евгений
2003-01-16 11:47 ` Alexey Voinov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030116101835.GA5275@dolmatov.dsb.ru \
--to=sergei@dolmatov.dsb.ru \
--cc=Community@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git