You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2017/10/27 11:42:54 UTC
[GitHub] jinfagang commented on issue #8444: /include/mxnet-cpp/operator.hpp:157:31: error: expected ';' at end of declaration std::vector outputs{output};
jinfagang commented on issue #8444: /include/mxnet-cpp/operator.hpp:157:31: error: expected ';' at end of declaration std::vector<NDArray> outputs{output};
URL: https://github.com/apache/incubator-mxnet/issues/8444#issuecomment-339948800
@lebeg Hi, so many thanks for your reply, after turn on c++ 11, things seems got a very far reach, but it still gives me some errors:
```
Undefined symbols for architecture x86_64:
"cv::Mat::deallocate()", referenced from:
mxnet::Imdecode(mxnet::NDArray*, mxnet::NDArray, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, char*) in libmxnet_static.a(ndarray.cc.o)
"cv::error(int, cv::String const&, char const*, char const*, int)", referenced from:
cv::Mat::Mat(int, int, int, void*, unsigned long) in libmxnet_static.a(ndarray.cc.o)
"cv::String::deallocate()", referenced from:
cv::Mat::Mat(int, int, int, void*, unsigned long) in libmxnet_static.a(ndarray.cc.o)
"cv::String::allocate(unsigned long)", referenced from:
cv::Mat::Mat(int, int, int, void*, unsigned long) in libmxnet_static.a(ndarray.cc.o)
"cv::fastFree(void*)", referenced from:
mxnet::Imdecode(mxnet::NDArray*, mxnet::NDArray, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, char*) in libmxnet_static.a(ndarray.cc.o)
"cv::imdecode(cv::_InputArray const&, int)", referenced from:
mxnet::Imdecode(mxnet::NDArray*, mxnet::NDArray, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, char*) in libmxnet_static.a(ndarray.cc.o)
"dmlc::RecordIOReader::NextRecord(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*)", referenced from:
_MXRecordIOReaderReadRecord in libmxnet_static.a(c_api.cc.o)
"dmlc::RecordIOWriter::WriteRecord(void const*, unsigned long)", referenced from:
_MXRecordIOWriterWriteRecord in libmxnet_static.a(c_api.cc.o)
"dmlc::Stream::Create(char const*, char const*, bool)", referenced from:
_MXNDArraySave in libmxnet_static.a(c_api.cc.o)
_MXNDArrayLoad in libmxnet_static.a(c_api.cc.o)
_MXRecordIOWriterCreate in libmxnet_static.a(c_api.cc.o)
_MXRecordIOReaderCreate in libmxnet_static.a(c_api.cc.o)
_MXSymbolCreateFromFile in libmxnet_static.a(c_api_symbolic.cc.o)
_MXSymbolSaveToFile in libmxnet_static.a(c_api_symbolic.cc.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
```
This is caused by OpenCV, but I disabled it when I build mxnet, why it still give me the error, if I want fix it, should I install opencv and link it in my project or there are anyother solutions?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services