Closed adventurist closed 1 year ago
5a988bf4e97b0c95cc49a29a109b22b26812f547
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)
libopennn.a
opennn
cd <opennn repo root>
cmake . -DOpenNN_BUILD_EXAMPLES=on -DOpenNN_BUILD_TESTS=off -DOpenNN_BUILD_BLANK=off
make simple_approximation -j
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
Solved in dev branch.
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 hasopennn
as a dependency)Steps to Reproduce
cd <opennn repo root>
cmake . -DOpenNN_BUILD_EXAMPLES=on -DOpenNN_BUILD_TESTS=off -DOpenNN_BUILD_BLANK=off
make simple_approximation -j
Output: