Skip to content

compiling issue when including ctf.hpp #145

@prateek22sri

Description

@prateek22sri

`In file included from file_reader.h:4,
from file_reader.cxx:7:
/home/pratsriv/softwares/ctf/INSTALL/include/ctf.hpp:48:9: warning: missing terminating ' character
48 | sed: can't read critter.h.tmp.concat: No such file or directory
| ^
.
.
.
In file included from file_reader.h:4,
from file_reader.cxx:7:
/home/pratsriv/softwares/ctf/INSTALL/include/ctf.hpp: At global scope:
/home/pratsriv/softwares/ctf/INSTALL/include/ctf.hpp:8624:24: error: ‘CTF::Pair’ has not been declared
8624 | CTF::Pair const * tsr_data,
| ^~~~
/home/pratsriv/softwares/ctf/INSTALL/include/ctf.hpp:10308:11: error: ‘with_vals’ was not declared in this scope
10308 | if (with_vals)
| ^~~~~~~~~
.
.
.

  |                 ~~~~~~~~~~~~~~~~~~^~

/home/pratsriv/softwares/ctf/INSTALL/include/ctf.hpp:6098:36: error: ‘omp_get_num_threads’ was not declared in this scope
6098 | int ntd = omp_get_num_threads();
| ~~~~~~~~~~~~~~~~~~~^~
/home/pratsriv/softwares/ctf/INSTALL/include/ctf.hpp: In instantiation of ‘void CTF_int::seq_coo_to_csr(int64_t, int, dtype*, int*, int*, const dtype*, const int*, const int*) [with dtype = std::complex; int64_t = long int]’:
/home/pratsriv/softwares/ctf/INSTALL/include/ctf.hpp:6222:26: required from ‘void CTF_int::def_coo_to_csr(int64_t, int, dtype*, int*, int*, const dtype*, const int*, const int*) [with dtype = std::complex; int64_t = long int]’
/home/pratsriv/softwares/ctf/INSTALL/include/ctf.hpp:6584:32: required from ‘void CTF::Set<dtype, is_ord>::coo_to_csr(int64_t, int, char*, int*, int*, const char*, const int*, const int*) const [with dtype = std::complex; bool is_ord = false; int64_t = long int]’
/home/pratsriv/softwares/ctf/INSTALL/include/ctf.hpp:6583:12: required from here
/home/pratsriv/softwares/ctf/INSTALL/include/ctf.hpp:6097:35: error: ‘omp_get_thread_num’ was not declared in this scope
6097 | int tid = omp_get_thread_num();
| ~~~~~~~~~~~~~~~~~~^~
/home/pratsriv/softwares/ctf/INSTALL/include/ctf.hpp:6098:36: error: ‘omp_get_num_threads’ was not declared in this scope
6098 | int ntd = omp_get_num_threads();
| ~~~~~~~~~~~~~~~~~~~^~
make: *** [Makefile:8: file_reader.o] Error 1
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions