Skip to content

Instantly share code, notes, and snippets.

@thomasaarholt
Created January 9, 2019 10:54
Show Gist options
  • Save thomasaarholt/b2d8336d621df6476e5fdd8aad3f9e5c to your computer and use it in GitHub Desktop.
Save thomasaarholt/b2d8336d621df6476e5fdd8aad3f9e5c to your computer and use it in GitHub Desktop.
cmake make error
$ make
[ 5%] Building CXX object src/CMakeFiles/stemsalabim_lib.dir/classes/Crystal.cpp.o
In file included from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Slice.hpp(28),
from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Crystal.cpp(29):
/usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/../utilities/Wave.hpp(110): error: namespace "std" has no member "complex"
typedef std::vector<std::complex<float>, fftwAllocator<std::complex<float>>> data_type;
^
In file included from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Slice.hpp(28),
from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Crystal.cpp(29):
/usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/../utilities/Wave.hpp(110): error: expected a ">"
typedef std::vector<std::complex<float>, fftwAllocator<std::complex<float>>> data_type;
^
In file included from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Slice.hpp(28),
from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Crystal.cpp(29):
/usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/../utilities/Wave.hpp(110): error: expected an identifier
typedef std::vector<std::complex<float>, fftwAllocator<std::complex<float>>> data_type;
^
In file included from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Slice.hpp(28),
from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Crystal.cpp(29):
/usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/../utilities/Wave.hpp(110): error: namespace "std" has no member "complex"
typedef std::vector<std::complex<float>, fftwAllocator<std::complex<float>>> data_type;
^
In file included from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Slice.hpp(28),
from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Crystal.cpp(29):
/usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/../utilities/Wave.hpp(110): error: expected a ">"
typedef std::vector<std::complex<float>, fftwAllocator<std::complex<float>>> data_type;
^
In file included from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Slice.hpp(28),
from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Crystal.cpp(29):
/usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/../utilities/Wave.hpp(110): error: expected a ";"
typedef std::vector<std::complex<float>, fftwAllocator<std::complex<float>>> data_type;
^
In file included from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Slice.hpp(28),
from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Crystal.cpp(29):
/usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/../utilities/Wave.hpp(146): error: identifier "data_type" is undefined
data_type d(lx * ly, std::complex<float>(1.0, 0.0));
^
In file included from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Slice.hpp(28),
from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Crystal.cpp(29):
/usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/../utilities/Wave.hpp(146): error: expected a ")"
data_type d(lx * ly, std::complex<float>(1.0, 0.0));
^
In file included from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Slice.hpp(28),
from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Crystal.cpp(29):
/usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/../utilities/Wave.hpp(237): error: qualified name is not allowed
std::complex<float> &operator[](unsigned long idx) {
^
In file included from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Slice.hpp(28),
from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Crystal.cpp(29):
/usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/../utilities/Wave.hpp(237): error #77: this declaration has no storage class or type specifier
std::complex<float> &operator[](unsigned long idx) {
^
In file included from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Slice.hpp(28),
from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Crystal.cpp(29):
/usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/../utilities/Wave.hpp(237): error: expected a ";"
std::complex<float> &operator[](unsigned long idx) {
^
In file included from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Slice.hpp(28),
from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Crystal.cpp(29):
/usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/../utilities/Wave.hpp(247): error: qualified name is not allowed
const std::complex<float> &operator[](unsigned long idx) const {
^
In file included from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Slice.hpp(28),
from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Crystal.cpp(29):
/usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/../utilities/Wave.hpp(247): error #303: explicit type is missing ("int" assumed)
const std::complex<float> &operator[](unsigned long idx) const {
^
In file included from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Slice.hpp(28),
from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Crystal.cpp(29):
/usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/../utilities/Wave.hpp(247): error: expected a ";"
const std::complex<float> &operator[](unsigned long idx) const {
^
In file included from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Slice.hpp(28),
from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Crystal.cpp(29):
/usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/../utilities/Wave.hpp(257): error: qualified name is not allowed
std::complex<float> &operator()(unsigned long idx, unsigned long idy) {
^
In file included from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Slice.hpp(28),
from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Crystal.cpp(29):
/usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/../utilities/Wave.hpp(257): error #77: this declaration has no storage class or type specifier
std::complex<float> &operator()(unsigned long idx, unsigned long idy) {
^
In file included from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Slice.hpp(28),
from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Crystal.cpp(29):
/usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/../utilities/Wave.hpp(257): error: expected a ";"
std::complex<float> &operator()(unsigned long idx, unsigned long idy) {
^
In file included from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Slice.hpp(28),
from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Crystal.cpp(29):
/usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/../utilities/Wave.hpp(436): warning #12: parsing restarts here after previous syntax error
unsigned int _lx{0};
^
In file included from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Slice.hpp(28),
from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Crystal.cpp(29):
/usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/../utilities/Wave.hpp(443): error: class "stemsalabim::FFTWCache" has no member "data_type"
FFTWCache::data_type _data;
^
In file included from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Slice.hpp(28),
from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Crystal.cpp(29):
/usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/../utilities/Wave.hpp(195): error: identifier "_lx" is undefined
_lx = from_copy._lx;
^
In file included from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Slice.hpp(28),
from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Crystal.cpp(29):
/usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/../utilities/Wave.hpp(195): error: class "stemsalabim::Wave" has no member "_lx"
_lx = from_copy._lx;
^
In file included from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Slice.hpp(28),
from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Crystal.cpp(29):
/usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/../utilities/Wave.hpp(208): error: identifier "_lx" is undefined
_lx = m._lx;
^
In file included from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Slice.hpp(28),
from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Crystal.cpp(29):
/usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/../utilities/Wave.hpp(208): error: class "stemsalabim::Wave" has no member "_lx"
_lx = m._lx;
^
In file included from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Slice.hpp(28),
from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Crystal.cpp(29):
/usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/../utilities/Wave.hpp(220): error: identifier "_lx" is undefined
return _lx;
^
In file included from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Crystal.cpp(29):
/usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Slice.hpp(72): error: class "stemsalabim::Wave" has no member "clear"
_transmission_function.clear();
^
In file included from /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Crystal.cpp(29):
/usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Slice.hpp(80): error: no operator "*=" matches these operands
operand types are: stemsalabim::Wave *= const stemsalabim::Wave
wave *= _transmission_function;
^
compilation aborted for /usit/abel/u1/thomasaar/software/STEMsalabim/src/classes/Crystal.cpp (code 2)
make[2]: *** [src/CMakeFiles/stemsalabim_lib.dir/classes/Crystal.cpp.o] Error 2
make[1]: *** [src/CMakeFiles/stemsalabim_lib.dir/all] Error 2
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment