Hi guys!
I want to start learning Objective-C and Id like to use c++ streams, problem is that it is causing error on this hello world example:
#import <iostream>
#import <windows.h>
int main( int argc, const char *argv[] ) {
std::cout<<"Hello World"<<std::endl;
Sleep(5000);
return 0;
}
and these are the errors:
undefined reference to std::cout
-||- std::operator <<
etc. etc.
Im programming on Win XP, using gcc compiler
What I have to do to avoid these error messages?
Thanks in advance for every reply
EDIT:
I dont know if I post thiss in the right section but somewhere in C section I saw post about objective-c so I guess I had to post post about objective-c++ in this section