4

からのHMMlibライブラリを使用してC++でいくつかの隠れマルコフコードを処理しようとしています

http://www.cs.au.dk/~asand/?page_id=152

私はubuntu12.04をgcc/g++4.6で使用しています

私のコンパイル手順は次のとおりです。

g++ -I/usr/local/boost_1_52_0 -I../ MAIN.cpp

これにより、次のエラーが発生します。

In file included from ../HMMlib/allocator_traits.hpp:25:0,
             from ../HMMlib/hmm_table.hpp:25,
             from MAIN.cpp:1:
/usr/lib/gcc/i686-linux-gnu/4.6/include/pmmintrin.h:32:3: error: #error "SSE3      instruction set not enabled"
In file included from ../HMMlib/hmm_table.hpp:25:0,
             from MAIN.cpp:1:
../HMMlib/allocator_traits.hpp:50:33: error: ‘__m128d’ was not declared in this scope
../HMMlib/allocator_traits.hpp:50:40: error: template argument 2 is invalid
../HMMlib/allocator_traits.hpp:77:32: error: ‘__m128’ was not declared in this scope
../HMMlib/allocator_traits.hpp:77:38: error: template argument 2 is invalid
In file included from ../HMMlib/hmm_table.hpp:26:0,
             from MAIN.cpp:1:
../HMMlib/operator_traits.hpp:112:32: error: ‘__m128d’ was not declared in this scope
../HMMlib/operator_traits.hpp:112:39: error: template argument 2 is invalid
../HMMlib/operator_traits.hpp:205:31: error: ‘__m128’ was not declared in this scope
../HMMlib/operator_traits.hpp:205:37: error: template argument 2 is invalid
In file included from ../HMMlib/hmm_table.hpp:27:0,
             from MAIN.cpp:1:
../HMMlib/float_traits.hpp:37:13: error: ‘__m128’ does not name a type
../HMMlib/float_traits.hpp:43:13: error: ‘__m128d’ does not name a type
In file included from ../HMMlib/hmm.hpp:34:0,
             from MAIN.cpp:3:
../HMMlib/sse_operator_traits.hpp:63:35: error: ‘__m128’ was not declared in this scope
../HMMlib/sse_operator_traits.hpp:63:41: error: template argument 2 is invalid
../HMMlib/sse_operator_traits.hpp:95:36: error: ‘__m128d’ was not declared in this scope
../HMMlib/sse_operator_traits.hpp:95:43: error: template argument 2 is invalid

私はこれらのエラーが何を意味するのか、そしてそれらをどのように解決するのか全く分かりません

4

1 に答える 1

7

コマンドラインオプションを使用して、gccのsse3組み込み関数を有効にする必要があります。でコンパイルしてみてください

g++ -msse3 -I/usr/local/boost_1_52_0 -I../ MAIN.cpp

またはプロセッサによって設定された命令を選択する

g++ -march=core2 -I/usr/local/boost_1_52_0 -I../ MAIN.cpp

コメントへの返信:-march=native現在実行しているプロセッサの命令セットを選択します。

-msse3すでにそのサブセット-msse2を選択していることに注意してください-msse

于 2013-02-15T11:40:37.277 に答える