HSPポータル
サイトマップ お問い合わせ


HSPTV!掲示板


未解決 解決 停止 削除要請

2014
0527
yasuNDKビルドの失敗について3解決


yasu

リンク

2014/5/27(Tue) 11:32:56|NO.62214

下記のようなメッセージがでてNDKびるどをしっぱいします。解決法を教えてください。
jni/hsp3embed/hspsource.cpp: In function 'void L0012()':
jni/hsp3embed/hspsource.cpp:82:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
jni/hsp3embed/hspsource.cpp:83:15: error: 'Usrfunc' was not declared in this scope
jni/hsp3embed/hspsource.cpp: In function 'void L0003()':
jni/hsp3embed/hspsource.cpp:129:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
jni/hsp3embed/hspsource.cpp: In function 'void L0016()':
jni/hsp3embed/hspsource.cpp:173:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
jni/hsp3embed/hspsource.cpp:174:15: error: 'Usrfunc' was not declared in this scope
jni/hsp3embed/hspsource.cpp: In function 'void L0007()':
jni/hsp3embed/hspsource.cpp:201:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
jni/hsp3embed/hspsource.cpp:202:15: error: 'Usrfunc' was not declared in this scope
jni/hsp3embed/hspsource.cpp:207:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
jni/hsp3embed/hspsource.cpp: In function 'void L0018()':
jni/hsp3embed/hspsource.cpp:243:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
jni/hsp3embed/hspsource.cpp: In function 'void L0019()':
jni/hsp3embed/hspsource.cpp:255:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
jni/hsp3embed/hspsource.cpp:256:15: error: 'Usrfunc' was not declared in this scope
make: *** [obj/local/armeabi/objs/AIUEO/hsp3embed/hspsource.o] Error 1



この記事に返信する


skyblue

リンク

2014/5/27(Tue) 16:20:43|NO.62216

hspsource.cppの157行目と256行目のUserfuncがこのスコープで宣言されていない。
1.error行を探す
2.エラーの出ている場所を見つける
filename:行数:列数?:error:エラーの原因 で見つけれる
filename:行数:列数?:warning:警告の原因 になっている所もできるだけ解決したほうがいい。
上記の方法はたいていの言語で役に立つので覚えておいたほうがいい。



おにたま(管理人)

リンク

2014/5/29(Thu) 01:22:54|NO.62239

hspsource.cppはhspのソーススクリプトをもとに生成されるファイルです。
おそらく、HSP3Dishで使用できない命令を記述しているか、使用できないプラグインを
呼びだそうとしているのではないかと思われます。
元になったソースを、Windows上のHSP3Dishランタイムで実行できるかを確認してみてください。
(#include "hsp3dish.as"が必ず必要になります)



yasu

リンク

2014/5/30(Fri) 02:16:29|NO.62249

skyblueさん、おにたまさん、回答ありがとうございました。
ビルドできないのはスクリプトの#include "hsp3dish.asのつづりが間違っていたこと、
HSP3.3しか使えない命令をおそらく使っていることだとわかりました。
本当にありがとうございました。
もっと勉強したいと思います。



ONION software Copyright 1997-2023(c) All rights reserved.