From: Mikhail Zabaluev <mhz@alt-linux.org>
To: mandrake-russian@altlinux.ru
Subject: [mdk-re] Re: mmsystem.h - с ошибкой?
Date: Mon Jul 23 10:43:00 2001
Message-ID: <20010723110454.C24162@localhost.localdomain> (raw)
In-Reply-To: <3B5A9466.BF243374@mtu-net.ru>; from okayunov@mtu-net.ru on Sun, Jul 22, 2001 at 12:52:54PM +0400
Hello Oleg,
On Sun, Jul 22, 2001 at 12:52:54PM +0400, Oleg N. Kayunov wrote:
>
> Mikhail Zabaluev wrote:
> >
> > Hello Oleg,
> >
> > On Sat, Jul 21, 2001 at 03:20:02PM +0400, Oleg N. Kayunov wrote:
> > >
> > > Натыкаюсь (последний раз - при трансляции SimGear) на сообщение:
> > > In file included from /usr/include/windows.h:33,
> > > from GLBitmaps.cxx:7:
> > > usr/include/mmsystem.h:28: parse error before string constant
> > >
> > > Этот файл (и mmsystem.h и windows.h) написан не мною :-)
> > >
> > > Потому вопрос:
> > > Что-то в нем (них) надо поменять?
> > >
> > > Для справки: 28 строка в mmsystem.h имеет вид
> > > typedef WORD VERSION; /* major (high byte), minor (low byte)
> > > */
> > > (IMHO - ничего криминального),
> > > ей предшествует:
> > > #define MAX_JOYSTICKOEMVXDNAME 260
> > > Разве что имя сликом длинное?
> >
> > Попробуйте выдать результат работы препроцессора (gcc -E srcfile.c >srcfile.i)
> > и посмотреть, какие макросы как раскрылись.
> Мда-а-а... Вы очень правы:
> typedef WORD "0.0.16";
> Но ведь это - _системный_ header файл. А VERSION - наверняка и в других
> пакетах примерно так же используется/определяется (или нет?) - у меня
> уже не первый раз слетает трансляция со ссылкой на этот header (# строки
> не помню).
> Нет-ли необходимости что-то поправить в системных файлах?
> Пока что я просто закомментарил эту строку и трансляция пошла
дальше.
windows.h и mmsystem.h - не системные.
Налицо типичный конфликт имен макросов. Попробуйте
#undef VERSION
перед директивой включения windows.h
--
Stay tuned,
MhZ JID: mookid@jabber.org
___________
A good reputation is more valuable than money.
-- Publilius Syrus
next prev parent reply other threads:[~2001-07-23 10:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-21 15:07 [mdk-re] " Oleg N. Kayunov
2001-07-22 1:50 ` [mdk-re] " Mikhail Zabaluev
2001-07-22 12:39 ` Oleg N. Kayunov
2001-07-23 10:43 ` Mikhail Zabaluev [this message]
2001-07-23 10:44 ` Mikhail Zabaluev
2001-07-23 14:41 ` Oleg N. Kayunov
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=20010723110454.C24162@localhost.localdomain \
--to=mhz@alt-linux.org \
--cc=mandrake-russian@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