boost.asioを使用してマルチキャスト送信者を実装しようとしています。スレッドを実装していて、ソケットの管理にのみboost.asioが必要です。
ブーストのサイトで例を見ましたが、理解できず、コンパイルもしていません。必要なものはどこにありますか?
コンパイルエラーは次のとおりです:(私はこの例を試しました:http ://www.boost.org/doc/libs/1_46_1/doc/html/boost_asio/example/multicast/sender.cpp )
エラー3エラーC2653:'asio':クラスまたは名前空間の名前ではありませんc:\ Documents and Settings \ GG \ Desktop \ sender.cpp 2
エラー4エラーC2653:'asio':クラスまたは名前空間の名前ではありませんc:\ Documents and Settings \ GG \ Desktop \ sender.cpp 24
エラー5エラーC2143:構文エラー:'&'の前に')'がありませんc:\ Documents and Settings \ GG \ Desktop \ sender.cpp 24
エラー6エラーC2143:構文エラー:';'がありません '&'の前c:\ Documents and Settings \ GG \ Desktop \ sender.cpp 24
エラー7エラーC2460:'sender :: io_service':定義されている'sender'を使用しますc:\ Documents and Settings \ GG \ Desktop \ sender.cpp 24
エラー8エラーC4430:型指定子がありません-intと見なされます。注:C++はdefault-intc:\ Documents and Settings \ GG \ Desktop \sender.cpp24をサポートしていません
エラー9エラーC2653:'asio':クラスまたは名前空間の名前ではありませんc:\ Documents and Settings \ GG \ Desktop \ sender.cpp 24
エラー10エラーC2143:構文エラー:';'がありません '&'の前c:\ Documents and Settings \ GG \ Desktop \ sender.cpp 24
エラー11エラーC4430:型指定子がありません-intと見なされます。注:C++はdefault-intc:\ Documents and Settings \ GG \ Desktop \sender.cpp24をサポートしていません
エラー13エラーC2059:構文エラー:')' c:\ Documents and Settings \ GG \ Desktop \ sender.cpp 24
エラー14エラーC2065:'multicast_address':宣言されていない識別子c:\ Documents and Settings \ GG \ Desktop \ sender.cpp 26
エラー15エラーC3861:'endpoint_':識別子が見つかりませんc:\ Documents and Settings \ GG \ Desktop \ sender.cpp 26
エラー16エラーC2531:'sender :: multicast_address':ビットフィールドへの参照が不正ですc:\ Documents and Settings \ GG \ Desktop \ sender.cpp 26
エラー17エラーC4430:型指定子がありません-intと見なされます。注:C++はdefault-intc:\ Documents and Settings \ GG \ Desktop \sender.cpp26をサポートしていません
エラー18エラーC2327:'sender :: io_service':タイプ名、静的、または列挙子ではありませんc:\ Documents and Settings \ GG \ Desktop \ sender.cpp 27
エラー19エラーC2061:構文エラー:識別子'io_service' c:\ Documents and Settings \ GG \ Desktop \ sender.cpp 27
エラー20エラーC2059:構文エラー:')' c:\ Documents and Settings \ GG \ Desktop \ sender.cpp 27
エラー21エラーC2061:構文エラー:識別子'timer_' c:\ Documents and Settings \ GG \ Desktop \ sender.cpp 28
エラー22エラーC2143:構文エラー:'{'の前に')'がありませんc:\ Documents and Settings \ GG \ Desktop \ sender.cpp 30
エラー23エラーC4430:型指定子がありません-intと見なされます。注:C++はdefault-intc:\ Documents and Settings \ GG \ Desktop \sender.cpp30をサポートしていません
エラー24エラーC2143:構文エラー:';'がありません '{' c:\ Documents and Settings \ GG \ Desktop \sender.cpp39の前
エラー25エラーC2334:「{」の前に予期しないトークンがあります。見かけの関数本体をスキップするc:\ Documents and Settings \ GG \ Desktop \ sender.cpp 39
エラー26致命的なエラーC1004:予期しないファイルの終わりが見つかりましたc:\ Documents and Settings \ GG \ Desktop \ sender.cpp 100