No such file or directory issue in cpp | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

No such file or directory issue in cpp

Hi friends, #ifndef __ABC__COMMAND_H_ #define __ABC__COMMAND_H_ #include<stdint.h> #include<strings.h> #include<iomanip> #include<iostream> . . . . #endif Like this my header file is there. When I am including this header file in some source file. I am facing issue. fatal error: iomanip: No such file or directory. I checked in /usr/include....eventhough getting error. I have changed the places of iostream and iomanip. Like, #include<iostream> #include<iomanip> Then getting fatal error: iomanip: No such file or directory. Error What could be the issue, please help. What changes I need make. What are causes for these type of errors. Thanks in advance

27th Sep 2021, 11:55 AM
malepu rakesh
malepu rakesh - avatar
3 Answers
+ 4
The problem is with the compiler. Make sure that you're using a C++ compiler, and not a C compiler that supports C++.
27th Sep 2021, 12:07 PM
Rishi
Rishi - avatar
+ 1
Thanks for responding Rishi & Martin Taylor , I am using cmake file to generate make file. When I am running getting same error.
29th Sep 2021, 11:14 AM
malepu rakesh
malepu rakesh - avatar
+ 1
Basically I am new to cmake, so couldn't able to find a way.
29th Sep 2021, 11:19 AM
malepu rakesh
malepu rakesh - avatar