gSoapを使用してWebサービスを作成しています。ヘッダファイルには、戻り値の型がenum値であるメソッド定義がほとんどありません。私は「戻り値として列挙型を持つ複数のメソッドを持っている場合は、さらにsoapcpp2の戻り値としての列挙型
sample.h(20): syntax error
sample.h(21): Syntax error: input before ; skipped
:私はsoapcpp2.exeツールを実行すると、私はこのエラーを取得していたヘッダファイルを渡している それはsoapcpp.exe
と制限
// enum definition
enum status {ok, error};
// method definition
status ns_calc(int a, int b);
です:
**WARNING**: Duplicate declaration of 'sample_status_____' (already declared at li ne 31), changing conflicting identifier name to new name sample_status______'. Note: this problem may be caused by importing invalid XML schemas (detected at line 38 in sample.h)
私のヘッダファイルは次のようなになりますmがこの警告を取得しますか?