Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debian 9.2 (stretch) - Compile error #7

Closed
jcrystal opened this issue Nov 5, 2020 · 2 comments
Closed

Debian 9.2 (stretch) - Compile error #7

jcrystal opened this issue Nov 5, 2020 · 2 comments

Comments

@jcrystal
Copy link

jcrystal commented Nov 5, 2020

Trying to compile current version in Debian, and get this. Any thoughts?

Thanks! Love this project.

Compiling mtdm.cc
In file included from ../../Source/mtdm.cc:22:0:
../../Source/mtdm.h:49:18: error: ‘size_t’ has not been declared
     int process (size_t len, float *inp, float *out);
                  ^~~~~~
../../Source/mtdm.cc:54:20: error: ‘int MTDM::process’ is not a static data member of ‘class MTDM’
 int MTDM::process (size_t len, float *ip, float *op)
                    ^~~~~~
../../Source/mtdm.cc:54:20: error: ‘size_t’ was not declared in this scope
../../Source/mtdm.cc:54:20: note: suggested alternative:
In file included from /usr/include/c++/6/cmath:41:0,
                 from /usr/include/c++/6/math.h:36,
                 from ../../Source/mtdm.cc:21:
/usr/include/x86_64-linux-gnu/c++/6/bits/c++config.h:201:26: note:   ‘std::size_t’
   typedef __SIZE_TYPE__  size_t;
                          ^~~~~~
../../Source/mtdm.cc:54:32: error: expected primary-expression before ‘float’
 int MTDM::process (size_t len, float *ip, float *op)
                                ^~~~~
../../Source/mtdm.cc:54:43: error: expected primary-expression before ‘float’
 int MTDM::process (size_t len, float *ip, float *op)
                                           ^~~~~
../../Source/mtdm.cc:54:52: error: expression list treated as compound expression in initializer [-fpermissive]
 int MTDM::process (size_t len, float *ip, float *op)
                                                    ^
Makefile:318: recipe for target 'build/intermediate/Release/mtdm_3a9da6a.o' failed
make: *** [build/intermediate/Release/mtdm_3a9da6a.o] Error 1

@jcrystal
Copy link
Author

jcrystal commented Nov 5, 2020

Solved it. Added #include <stddef.h> to mtdm.cc. Would recommend adding on future push.

@jcrystal jcrystal closed this as completed Nov 5, 2020
@essej
Copy link
Collaborator

essej commented Nov 5, 2020

Just did! Actually i added it to mtdm.h because size_t was used there too, just to be safe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants