Ask Your Question

iostream not found

asked 2014-09-11 12:00:51 -0500

Yiming.Yang gravatar image


I am creating a catkin package that adds some .c and .cpp files to the library. The .c files come from some very old project and it can be built without ROS. When I try to catkinize the project, I dont want to modify these .c files but just add them to catkin library, together with other .cpp files. However, some of the c files have #include<iostream>, #include<iomanip>, and when I do catkin_make, it says iostream/iomanip no such file. Is there a way of using catkin_make without changing any original c files.

Thanks, Yiming

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-09-11 12:23:09 -0500

dornhege gravatar image

Something was odd with those c files in the first place. .c files are C files (i.e. not C++) and C does not have iostream, iomanip.

Therefore I assume that is actually C++ code. So renaming those files to .cpp should be safe and fix the problem.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2014-09-11 12:00:51 -0500

Seen: 502 times

Last updated: Sep 11 '14