c++ compilng failed

I have tried to build and run c++ files but it failes every time I try. here is the code when I compile it in the terminal

In file included from /usr/local/include/c++/8.3.0/x86_64-cros-linux-gnu/bits/os_defines.h:39, from /usr/local/include/c++/8.3.0/x86_64-cros-linux-gnu/bits/c++config.h:508, from /usr/local/include/c++/8.3.0/iostream:38, from a.cpp:2:
`/usr/include/features.h:424:12: fatal error: sys/cdefs.h: No such file or directory
`/usr/include/features.h:424:12: fatal error: sys/cdefs.h: No such file or directory

# include ^~~~~~~~~~~~~ compilation terminated.'

1

1 Answer

You need g++-multilb package

sudo apt-get install g++-multilib
5

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like