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
4 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++.
+ 1
Thanks for responding Rishi & Martin Taylor , I am using cmake file to generate make file. When I am running getting same error.
+ 1
Basically I am new to cmake, so couldn't able to find a way.