Memory header not found

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Memory header not found

Boost - Users mailing list
Hey guys,
I am new here and wanted some help from you guys.

I was trying to upgrade and compile the FElt software, a software for finite element analysis.
The source code is here :

https://github.com/AkMecha/felt

Now, the problem is that during compilation, one of the source file is including some header file from the boost library.
The chain of including goes on and reaches the memory.hpp file which is present in /usr/include/boost/config/no_tr1/ directory.

This memory.hpp is in turn including the memory header file from the standard C++ library, but it can't find that memory header file.
And this is strange because I personally went and checked that the memory header is there in the standard location, as you can see below :

sudhanshu@sudhanshu-Inspiron-15-3567:/usr/include/c++/7.3.0$ ls
algorithm  cerrno     complex             cstdio    decimal       initializer_list  map       queue             stdlib.h      typeindex
any        cfenv      complex.h           cstdlib   deque         iomanip           math.h    random            streambuf     typeinfo
array      cfloat     condition_variable  cstring   exception     ios               memory    ratio             string        type_traits
atomic     chrono     csetjmp             ctgmath   experimental  iosfwd            mutex     regex             string_view   unordered_map
backward   cinttypes  csignal             ctime     ext           iostream          new       scoped_allocator  system_error  unordered_set
bits       ciso646    cstdalign           cuchar    fenv.h        istream           numeric   set               tgmath.h      utility
bitset     climits    cstdarg             cwchar    forward_list  iterator          optional  shared_mutex      thread        valarray
cassert    clocale    cstdbool            cwctype   fstream       limits            ostream   sstream           tr1           variant
ccomplex   cmath      cstddef             cxxabi.h  functional    list              parallel  stack             tr2           vector
cctype     codecvt    cstdint             debug     future        locale            profile   stdexcept         tuple

The error message shown during the compilation is  :

[ 51%] Building C object src/Burluap/CMakeFiles/burluap.dir/apply.c.o
In file included from /usr/include/boost/smart_ptr/shared_ptr.hpp:23:0,
                 from /usr/include/boost/shared_ptr.hpp:17,
                 from /home/sudhanshu/Pictures/felt/include/matrix.h:23,
                 from /home/sudhanshu/Pictures/felt/src/Burluap/descriptor.h:35,
                 from /home/sudhanshu/Pictures/felt/src/Burluap/trap.h:31,
                 from /home/sudhanshu/Pictures/felt/src/Burluap/apply.c:29:
/usr/include/boost/config/no_tr1/memory.hpp:21:12: fatal error: memory: No such file or directory
 #  include <memory>
            ^~~~~~~~
compilation terminated.
src/Burluap/CMakeFiles/burluap.dir/build.make:62: recipe for target 'src/Burluap/CMakeFiles/burluap.dir/apply.c.o' failed
make[2]: *** [src/Burluap/CMakeFiles/burluap.dir/apply.c.o] Error 1
CMakeFiles/Makefile2:504: recipe for target 'src/Burluap/CMakeFiles/burluap.dir/all' failed
make[1]: *** [src/Burluap/CMakeFiles/burluap.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

So can I get some help as to what should I do to make the memory.hpp find the memory header file?

--
Sudhanshu Dubey
https://hacksd.wordpress.com
https://github.com/Sudhanshu-Dubey14
_______________________________________________
Boost-users mailing list
[hidden email]
https://lists.boost.org/mailman/listinfo.cgi/boost-users