LoginSignup
4
5

More than 5 years have passed since last update.

SimStringをLinuxで動かす際の注意点

Last updated at Posted at 2016-04-25

類似文字検索のためにSimStringをLinux上で動かそうとした際に以下のような文が含まれるエラーがでてしまった場合の対処方法のメモ.

g++ -DHAVE_CONFIG_H -I. -I.. -I../include -03 -ffast-math -03 -ffast-math -MT main.o -M -MF .deps/main.Tpo -c -o main.o main.cpp
In file included from ../include/simstring/memory_mapped_file.h:62:0,
          from ../include/simstring/simstring.h:52
          from main.cpp:43 

対処方法
1.次のファイルを適当なエディタで編集.
simstring/include/simstring/memory_mapped_file_prosix.h

2.以下の文をmemory_mapped_file_profix.hに追加
#include <unistd.h>

あとはこちらのページの通り、

./configure
make
make install

とすることで、frontend/simstring に実行ファイルが作られます.

4
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
5