leleamol commented on issue #12543: Complie error (not the mxnet itself. but cpp interface) URL: https://github.com/apache/incubator-mxnet/issues/12543#issuecomment-422186084 @s0302102 I was able to build latest version of mxnet and examples correctly. Can you try building examples in cpp-package/examples directory as mentioned here (https://github.com/apache/incubator-mxnet/blob/master/cpp-package/README.md) ? The error in the first post seems to be from compiler. Will you be able to post the complete error message you obtained when you built your example? For reference: Here is an sample of compile command for compiling an example (test_example.cpp) in cpp-package/example directory. > g++ -std=c++0x -DMSHADOW_FORCE_STREAM -Wall -Wsign-compare -O3 -DNDEBUG=1 -I/mxnet/3rdparty/mshadow/ -I/mxnet/3rdparty/dmlc-core/include -fPIC -I/mxnet/3rdparty/tvm/nnvm/include -I/mxnet/3rdparty/dlpack/include -I/mxnet/3rdparty/tvm/include -Iinclude -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -Wno-unused-local-typedefs -msse3 -mf16c -DMSHADOW_USE_CUDA=0 -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=0 -DMSHADOW_USE_PASCAL=0 -DMXNET_USE_OPENCV=1 -I/usr/include/opencv -fopenmp -DMXNET_USE_OPERATOR_TUNING=1 -DMXNET_USE_LAPACK -DMXNET_USE_NCCL=0 -DMXNET_USE_LIBJPEG_TURBO=0 -Icpp-package/include -Ibuild/cpp-package/include -MM -MT cpp-package/example/mlp cpp-package/example/mlp.cpp The header file dependency for this example is > cpp-package/example/mlp: cpp-package/example/mlp.cpp \ > cpp-package/include/mxnet-cpp/MxNetCpp.h \ > cpp-package/include/mxnet-cpp/executor.hpp \ > cpp-package/include/mxnet-cpp/executor.h \ > cpp-package/include/mxnet-cpp/base.h include/mxnet/c_api.h \ > /mxnet/3rdparty/tvm/nnvm/include/nnvm/c_api.h \ > cpp-package/include/mxnet-cpp/symbol.h \ > cpp-package/include/mxnet-cpp/ndarray.h \ > cpp-package/include/mxnet-cpp/shape.h \ > cpp-package/include/mxnet-cpp/op_map.h \ > /mxnet/3rdparty/dmlc-core/include/dmlc/logging.h \ > /mxnet/3rdparty/dmlc-core/include/dmlc/./base.h \ > cpp-package/include/mxnet-cpp/optimizer.h \ > cpp-package/include/mxnet-cpp/lr_scheduler.h \ > cpp-package/include/mxnet-cpp/symbol.hpp \ > cpp-package/include/mxnet-cpp/op_suppl.h \ > cpp-package/include/mxnet-cpp/operator.h \ > cpp-package/include/mxnet-cpp/ndarray.hpp \ > cpp-package/include/mxnet-cpp/monitor.hpp \ > cpp-package/include/mxnet-cpp/monitor.h \ > cpp-package/include/mxnet-cpp/operator.hpp \ > cpp-package/include/mxnet-cpp/optimizer.hpp \ > cpp-package/include/mxnet-cpp/op.h \ > cpp-package/include/mxnet-cpp/op_util.h \ > /mxnet/3rdparty/dmlc-core/include/dmlc/optional.h \ > /mxnet/3rdparty/dmlc-core/include/dmlc/./common.h \ > /mxnet/3rdparty/dmlc-core/include/dmlc/././logging.h \ > /mxnet/3rdparty/dmlc-core/include/dmlc/./logging.h \ > /mxnet/3rdparty/dmlc-core/include/dmlc/./type_traits.h \ > /mxnet/3rdparty/dmlc-core/include/dmlc/././base.h \ > cpp-package/include/mxnet-cpp/kvstore.hpp \ > cpp-package/include/mxnet-cpp/kvstore.h \ > cpp-package/include/mxnet-cpp/io.hpp cpp-package/include/mxnet-cpp/io.h \ > cpp-package/include/mxnet-cpp/metric.h \ > cpp-package/include/mxnet-cpp/initializer.h
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services
