Artelnics / opennn

OpenNN - Open Neural Networks Library
http://www.opennn.net
GNU Lesser General Public License v3.0
1.12k stars 354 forks source link

Undefined reference - opennn::sort_channel #263

Closed adventurist closed 1 year ago

adventurist commented 1 year ago

Commit

5a988bf4e97b0c95cc49a29a109b22b26812f547

Description

Currently able to build libopennn.a just fine, but examples fail (as well as my project one of my current projects, which has opennn as a dependency)

Steps to Reproduce

Output:

[ 96%] Linking CXX static library libopennn.a
[ 96%] Built target opennn
Consolidate compiler generated dependencies of target simple_approximation
[ 98%] Building CXX object examples/simple_approximation/CMakeFiles/simple_approximation.dir/main.cpp.o
[100%] Linking CXX executable simple_approximation
/usr/bin/ld: ../../opennn/libopennn.a(data_set.cpp.o): in function `opennn::DataSet::read_bmp_image(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
data_set.cpp:(.text+0x2d30f): undefined reference to `opennn::remove_padding(Eigen::Tensor<unsigned char, 1, 0, long>&, int const&, int const&, int const&)'
/usr/bin/ld: data_set.cpp:(.text+0x2d578): undefined reference to `opennn::sort_channel(Eigen::Tensor<unsigned char, 1, 0, long>&, Eigen::Tensor<unsigned char, 1, 0, long>&, int const&)'
/usr/bin/ld: data_set.cpp:(.text+0x2d598): undefined reference to `opennn::sort_channel(Eigen::Tensor<unsigned char, 1, 0, long>&, Eigen::Tensor<unsigned char, 1, 0, long>&, int const&)'
/usr/bin/ld: data_set.cpp:(.text+0x2d5b8): undefined reference to `opennn::sort_channel(Eigen::Tensor<unsigned char, 1, 0, long>&, Eigen::Tensor<unsigned char, 1, 0, long>&, int const&)'
collect2: error: ld returned 1 exit status
davidge807 commented 1 year ago

Solved in dev branch.