mac os x上的fmemopen错误

时间:2016-07-06 08:17:40

标签: macos compiler-errors opticalflow

我想使用makefile编译一些代码。 这些代码是从"计算逆向光流,Javier等,2013" 当我编译代码时,我得到了下面的错误,所以我尝试添加" fmemopen"来自" https://github.com/materialsvirtuallab/pyhull/tree/master/src/fmemopen"的文件正如它所说。 但我仍然有同样的错误,我认为" _read_image_f在iio.o"这是问题所在。我不知道如何解决这个问题。请帮帮我。

jeongHyunseonui-MacBook-Pro:inverse_flow hyunseon$ make
g++ -Wall -Wextra -Wno-unused -pedantic -O4 -o backward_flow backward_flow.cpp iio.o -lpng -ljpeg -ltiff
clang: warning: -O4 is equivalent to -O3
Undefined symbols for architecture x86_64:
"_fmemopen", referenced from:
  _read_image_f in iio.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [backward_flow] Error 1

0 个答案:

没有答案