[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[mgp-users-jp 00180] Re: mgpnet on linux



>> 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