I'm trying to port some C++ code to Objective-C. It includes iostream
and sstream
, but Objective-C does not recognize these. What should be done?
Asked
Active
Viewed 4,082 times
3

Peter Mortensen
- 30,738
- 21
- 105
- 131

node ninja
- 31,796
- 59
- 166
- 254
-
3Ask another, very similar question on stackoverflow 6 minutes after this one! – Sam Miller Sep 25 '10 at 18:27
1 Answers
13
You can use iostream
and sstream
in Objective-C++.
Just make sure your source code file ends with .mm
instead of .m
and you will be able to use any standard C++ library you might need. Including <stream>
.

Pablo Santa Cruz
- 176,835
- 32
- 241
- 292