Compile Error from Boost/smartPtr
Created by: eamost
I tried to build the package. I had this error while compiling. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// In file included from /usr/include/boost/smart_ptr/shared_ptr.hpp:28:0, from /usr/include/boost/shared_ptr.hpp:17, from /usr/include/boost/filesystem/path.hpp:29, from /usr/include/boost/filesystem.hpp:16, from /home/eamost01/PLDA_PAMI_2013/bob-1.2.0/src/io/cxx/ImageGifFile.cc:23: /usr/include/boost/smart_ptr/detail/shared_count.hpp: In instantiation of ‘boost::detail::shared_count::shared_count(P, D) [with P = GifFileType*; D = int ()(GifFileType, int*)]’: /usr/include/boost/smart_ptr/shared_ptr.hpp:358:76: required from ‘boost::shared_ptr::shared_ptr(Y*, D) [with Y = GifFileType; D = int ()(GifFileType, int*); T = GifFileType]’ /home/eamost01/PLDA_PAMI_2013/bob-1.2.0/src/io/cxx/ImageGifFile.cc:306:58: required from here /usr/include/boost/smart_ptr/detail/shared_count.hpp:171:9: error: too few arguments to function d(p); // delete p ^ In file included from /usr/include/boost/smart_ptr/detail/shared_count.hpp:30:0, from /usr/include/boost/smart_ptr/shared_ptr.hpp:28, from /usr/include/boost/shared_ptr.hpp:17, from /usr/include/boost/filesystem/path.hpp:29, from /usr/include/boost/filesystem.hpp:16, from /home/eamost01/PLDA_PAMI_2013/bob-1.2.0/src/io/cxx/ImageGifFile.cc:23: /usr/include/boost/smart_ptr/detail/sp_counted_impl.hpp: In instantiation of ‘void boost::detail::sp_counted_impl_pd<P, D>::dispose() [with P = GifFileType*; D = int ()(GifFileType, int*)]’: /home/eamost01/PLDA_PAMI_2013/bob-1.2.0/src/io/cxx/ImageGifFile.cc:708:48: required from here /usr/include/boost/smart_ptr/detail/sp_counted_impl.hpp:153:9: error: too few arguments to function del( ptr ); ^ /home/eamost01/PLDA_PAMI_2013/bob-1.2.0/src/io/cxx/ImageGifFile.cc:708:13: warning: ‘codec_registered’ defined but not used [-Wunused-variable] static bool codec_registered = register_codec(); ^ src/io/cxx/CMakeFiles/bob_io.dir/build.make:540: recipe for target 'src/io/cxx/CMakeFiles/bob_io.dir/ImageGifFile.cc.o' failed make[2]: *** [src/io/cxx/CMakeFiles/bob_io.dir/ImageGifFile.cc.o] Error 1 CMakeFiles/Makefile2:696: recipe for target 'src/io/cxx/CMakeFiles/bob_io.dir/all' failed make[1]: *** [src/io/cxx/CMakeFiles/bob_io.dir/all] Error 2 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Action: Comment the function to delete P where the error exist (d(p) and del(ptr) inside boost/smart_ptr/shared_ptr.hpp and boost/smart_ptr/detail/shared_count.hpp . Results: Successfully compile and run. Unfortunately, I had problem when converting featiure from CSV into HDF5 since it is too many hdf5 files are open. I believe it is related to unreleased memory.
I appreciate your time in advance