Try `sudo apt install libhdf5-dev`. If that didn't work, try `gcc kmeans.cpp -I/path/to/headers -L/path/to/libshogun/ -lshogun /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so -std=c++17 -o native_example`
On Sun, Mar 1, 2020 at 4:45 AM Ahmed Khalifa <ahmed70...@gmail.com> wrote: > this is what I get :( > > /usr/bin/ld: warning: libhdf5.so.103, needed by > //usr/local/lib/libshogun.so, not found (try using -rpath or > -rpath-link) > /usr/bin/ld: /tmp/ccyWGxol.o: undefined reference to symbol > '_ZTVN10__cxxabiv117__class_type_infoE@@CXXABI_1.3' > //usr/lib/x86_64-linux-gnu/libstdc++.so.6: error adding symbols: DSO > missing from command line > collect2: error: ld returned 1 exit status > > > On 01/03/2020, Ahmed Essam <theartful...@gmail.com> wrote: > > Try something like this > > "gcc kmeans.cpp -o native_example -I/path/to/headers > -L/path/to/libshogun/ > > -lshogun -std=c++17" > > libshogun.so should be in path/to/libshogun/libshogun.so > > > > On Sun, Mar 1, 2020 at 4:34 AM Ahmed Khalifa <ahmed70...@gmail.com> > wrote: > > > >> Have done that, this is what I get https://pastebin.com/VYe96muB > >> > >> On 01/03/2020, Ahmed Essam <theartful...@gmail.com> wrote: > >> > Shogun needs c++17. Add the flag 'std=c++1z'. > >> > > >> > On Sun, Mar 1, 2020, 3:11 AM Ahmed Khalifa via shogun-list < > >> > shogun-list@shogun-toolbox.org> wrote: > >> > > >> >> Hello guys, > >> >> So as per the document, I should run the example using something like > >> >> *gcc > >> >> cartree.cpp -o native_example -I/path/to/headers -lshogun > >> >> -L/path/to/libshogun.* > >> >> However, when I do use it I get this huge wall of text, that I have > no > >> >> idea what it means, could it be that /path/to/headers makes no sense? > >> >> https://pastebin.com/ppg6jkt6 > >> >> > >> >> I have followed the steps on install.md minus the whole Python,R > >> >> interfaces thing cause I wanted to just make sure the cpp code runs > >> first > >> >> And speaking of, I didn't run *make **build_cpp_meta_examples* cause > >> >> it > >> >> seemed to be taking plenty of time, and it was already 3 am, could > >> >> this > >> >> be > >> >> the reason? > >> >> Thanks, > >> >> Ahmed > >> >> > >> > > >> > > >