ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Oleg N. Kayunov" <okayunov@mtu-net.ru>
To: mandrake-russian@altlinux.ru
Subject: [mdk-re] Re: mmsystem.h - с ошибкой?
Date: Sun Jul 22 12:39:11 2001
Message-ID: <3B5A9466.BF243374@mtu-net.ru> (raw)
In-Reply-To: <20010722021115.B2209@localhost.localdomain>

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 (# строки
не помню).
	Нет-ли необходимости что-то поправить в системных файлах?
	Пока что я просто закомментарил эту строку и трансляция пошла дальше.
	
	И остановилась на другом совсем файле, обнаружив конфликт опять-таки в
_системных_ header- ах:
=============================================================================
In file included from /usr/include/g++-3/stl_alloc.h:72,
                 from /usr/include/g++-3/alloc.h:22,
                 from /usr/include/g++-3/std/bastring.h:40,
                 from /usr/include/g++-3/string:7,
                 from ../../simgear/misc/sg_path.hxx:36,
                 from sg_time.cxx:58:
/usr/include/pthread.h: At top level:
/usr/include/pthread.h:668: declaration of C function `int
pthread_atfork (void (*) (), void (*) (), void (*) ())' conflicts with
/usr/include/unistd.h:984: previous declaration `int pthread_atfork
(void (*) (), void (*) (), void (*) ())' here
=============================================================================
	Так все-ли в порядке с _системными_ header - файлами?
	Или тут достаточно добавить некую опцию в команду трансляции? С учетом
того, продекларированные прототипы не отличаются?
	(Я раньше в командных строках практически не транслировал - все больше
Watcom, Turbo C...)

> 
> --
> Stay tuned,
>   MhZ                                     JID: mookid@jabber.org
> ___________
> "Bite off, dirtball."
> Richard Sexton, richard@gryphon.COM

-- 
            Best regards, Oleg N. Kayunov.




  reply	other threads:[~2001-07-22 12:39 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 [this message]
2001-07-23 10:43     ` Mikhail Zabaluev
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=3B5A9466.BF243374@mtu-net.ru \
    --to=okayunov@mtu-net.ru \
    --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