c++decl command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
c++decl: command not found
or when using sudo you get the following error message
sudo: c++decl: command not found
Solutions to c++decl: command not found
How To Fix c++decl: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu c++decl is provided by cdecl package.
cdecl is:
Cdecl is a program which will turn English-like phrases such as “declare foo as array 5 of pointer to function returning int” into C declarations such as “int (*foo[5])()”. It can also translate the C into the pseudo- English. And it handles typecasts, too. Plus C++. And in this version it has command line editing and history with the GNU readline library.
To fix this problem, we can install more using the command below.
sudo apt-get -y install cdecl
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install cdecl.
sudo apt -y install cdecl
Or if you have aptitude installed you can use the following command.
sudo aptitude install cdecl
Summary
In this tutorial we learn how to fix c++decl command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.