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

RE: cross compiling problems



-----Original Message-----
差出人 : UCHIYAMA Yasushi <uch@nop.or.jp>
宛先 : takemura@netbsd.org <takemura@netbsd.org>
CC : port-hpcmips-ja@jp.netbsd.org <port-hpcmips-ja@jp.netbsd.org>
日時 : 1999年11月8日 23:32
件名 : Re: cross compiling problems


> | そもそも、extern inline とはどういう意味なのでしょうか!?
>
>-O以上でコンパイルすると、inline展開してくれます。 -Oをつけないと
>展開されないので、undefinedになってしまいます。

???よく理解できません。

extern inline int foo(int a) { return a; }
main() { printf("hello %d\n", foo(7)); }

というようなものを cc hello.c でコンパイルした場合、
undefined foo となってしまうのでしょうか?

あんまりだー。というか、なぜそんな仕様?

Takemura