[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[mgp-users-jp 00180] Re: mgpnet on linux
- To: mgp-users-jp@mew.org
- Subject: [mgp-users-jp 00180] Re: mgpnet on linux
- From: Takeshi Itoh <tito@ca.mbn.or.jp>
- Date: Wed, 24 Jun 1998 21:21:56 +0900
- In-reply-to: Your message of "Wed, 24 Jun 1998 00:53:03 +0900" <>
- Posted: Wed, 24 Jun 1998 12:19:02 +0900
- References: <>
- Reply-to: mgp-users-jp@mew.org
>> cpp にオプションなしだと "__なになに__" が定義されないのでそこで終っ
>> てしまっているようなのですが試しにコマンドラインから次の様にするとエラー
>> になりません。
>> $ (cat /usr/include/waitflags.h; echo WNOHANG)|cpp | tail -n1
~~~~~~~~~~~
すいません。寝惚けてました。
$ cat /usr/include/sys/wait.h | cpp > /dev/null
~~~~~~
In file included from /usr/include/endian.h:34,
from /usr/include/waitstatus.h:70,
from :78:
/usr/include/bytesex.h:13: #error architecture not supported by the Linux C library
$
コマンドラインでもperlからでも同じです。
> コマンドラインから呼んでいるcppと、mgpnetのなかから呼んでいるcppは
> おんなじですか?
こういう問題でなかったです。以下のプログラムは gcc foo.c だと ok で
gcc -undef foo.c だと#error でひっかかります。というわけでこれは私の環
境(Slackware ? linux ? gcc ?)の問題だと思います。
---- foo.c ----
#include <sys/wait.h>
main(){}
--------------
おさわがせしました。
--
PGP public key http://plaza6.mbn.or.jp/~tito/tito-pgppub.txt
email tito@ca.mbn.or.jp 伊藤 剛@BITS