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

max_align_t problem #5

Closed
qingzengsong opened this issue Aug 16, 2017 · 6 comments
Closed

max_align_t problem #5

qingzengsong opened this issue Aug 16, 2017 · 6 comments

Comments

@qingzengsong
Copy link

when mak in cpp,I have a problem ‘’max_align_t‘’.
In file included from /opt/Xilinx/SDx/2016.4/Vivado_HLS/include/gmp.h:53:0,
from /opt/Xilinx/SDx/2016.4/Vivado_HLS/include/floating_point_v7_0_bitacc_cmodel.h:143,
from /opt/Xilinx/SDx/2016.4/Vivado_HLS/include/hls_half.h:40,
from /opt/Xilinx/SDx/2016.4/Vivado_HLS/include/ap_int.h:28,
from ../utils/Typedefs.h:4,
from AccelTest.h:4,
from AccelTest.cpp:1:
/usr/include/c++/5/cstddef:51:11: error: ‘::max_align_t’ has not been declared
using ::max_align_t;
^

I add #include to
ParamIO.cpp
Common.cpp
DataIO.cpp
AccelTest.cpp
can solve this problem.

But, this wether lead other problem, since
'ParamIO.cpp
Common.cpp
DataIO.cpp
AccelTest.cpp'
will be build by Vivado_HLS?

@MinLiAmoy
Copy link

I met the same problem. I added #include and the problem was solved. There's no problem with the SDSoC.

@qingzengsong
Copy link
Author

qingzengsong commented Aug 17, 2017 via email

@qingzengsong
Copy link
Author

qingzengsong commented Aug 17, 2017 via email

@yunchenlo
Copy link

@qingzengsong @MinLiAmoy
May I know what specifically should I change to solve this problem, thanks!
Jason Lo

@rzhao01
Copy link
Contributor

rzhao01 commented Feb 9, 2018

Looking online, the solution is to do
#include<cstddef>
before any other headers.

@rzhao01 rzhao01 closed this as completed Feb 11, 2018
@hex0102
Copy link

hex0102 commented Feb 14, 2018

I added #include <cstddef> in every .cpp file in both utils and accel. It seems work.

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

5 participants