43: 2006-03-29 (水) 13:57:23 [6] | 44: 2006-04-01 (土) 07:09:06 [7] | ||
---|---|---|---|
Line 2: | Line 2: | ||
[[OSASKページ:http://coze.s201.xrea.com/osask/]] | [[OSASKページ:http://coze.s201.xrea.com/osask/]] | ||
- | What's New | + | ** アプリ作成に関する質問 |
- | -2006-03-27 life v0.1を作りました。ライフゲームのマップをファイルから読み込めるようになりました。 | + | ''makeエラー'' (2006-04-01) |
- | ** アプリ作成に関する質問 | + | tolset08を使っています。 |
+ | |||
+ | static int a(double x) { | ||
+ | if (x < 0) | ||
+ | return x + 0.5; | ||
+ | } | ||
+ | |||
+ | というコードがエラーになります。 | ||
+ | |||
+ | > make | ||
+ | make -r hturtle.bin | ||
+ | make[1]: Entering directory `C:/osask' | ||
+ | sjisconv -s hturtle.c hturtle.ca | ||
+ | cc1 -I. -Os -quiet -o hturtle.gas hturtle.ca | ||
+ | gas2nask -a hturtle.gas hturtle.nas | ||
+ | skip:fucomp %st(1) | ||
+ | make[1]: *** [hturtle.nas] Error 1 | ||
+ | rm hturtle.gas hturtle.nas hturtle.ca | ||
+ | make[1]: Leaving directory `C:/osask' | ||
+ | make: *** [ALL] Error 2 | ||
+ | |||
+ | それで x < 0 を x > 0 にするとエラーはなくなります。 | ||
+ | |||
+ | static int a(double x) { | ||
+ | if (x > 0) | ||
+ | return x + 0.5; | ||
+ | } | ||
+ | |||
+ | > make | ||
+ | make -r hturtle.bin | ||
+ | make[1]: Entering directory `C:/osask' | ||
+ | sjisconv -s hturtle.c hturtle.ca | ||
+ | cc1 -I. -Os -quiet -o hturtle.gas hturtle.ca | ||
+ | gas2nask -a hturtle.gas hturtle.nas | ||
+ | nask hturtle.nas hturtle.obj | ||
+ | obj2bim3 @guigui00.rul out:hturtle.bim stack:64k map:hturtle.map hturtle.obj | ||
+ | bim2bin3 in:hturtle.bim out:hturtle.org malloc:256k mmarea:0 | ||
+ | bim2bin3 -osacmp -tek0 in:hturtle.org out:hturtle.bin | ||
+ | rm hturtle.gas hturtle.nas hturtle.ca | ||
+ | make[1]: Leaving directory `C:/osask' | ||
+ | |||
+ | 原因は分かりますでしょうか? return x + 0.5 もエラーの要因になっている雰囲気です。 | ||
''lib_opentextbox の opt'' | ''lib_opentextbox の opt'' |
(This host) = http://osask.net