私はc++コードの下でubuntuで働いています。サーバーに接続するためにgsoapを使用しています。必要なすべてのデータを取得しました。サーバーへの接続にも成功しました。それでも質問があります。コマンドラインに書き込む必要があるのはなぜですか:g ++ test_server.cpp -o testServlibgsoap++。a。フォルダにすべての依存関係を含めたのに、コマンドラインにlibgsoap ++。aを含める必要があるのはなぜですか?編集:
コマンドラインにlibgsoap++。aを含めない場合、次のようになります。
undefined reference to `soap_embed'
/tmp/ccyeN0df.o: In function `soap_serialize_string(soap*, char* const*)':
TEST.cpp:(.text+0xb9de): undefined reference to `soap_reference'
/tmp/ccyeN0df.o: In function `soap_out_string(soap*, char const*, int, char* const*, char const*)':
TEST.cpp:(.text+0xba15): undefined reference to `soap_outstring'
/tmp/ccyeN0df.o: In function `soap_in_string(soap*, char const*, char**, char const*)':