Hello. I am very new to C++ programming here, and since my main focus will be games, decided to join Gamedev. I know a little C aswell as Actionscript (Flash's coding language).
Due to the fact that I use a mac, I have installed XCode for the compiler & IDE, just to find out that when creating a c++ app, it needs about 10 additional files. Is there any way around this, so I can create a working c++ application that just outputs something in the terminal without all the files?
I not, I have an other problem: When I try compiling a C application in the terminal, using
gcc [pathToFile ]
it compiles fine. However, when I do this with a c++ file, and dosen't compile, and gives me this error:
/usr/bin/ld: Undefined symbols:
std::ios_base::Init::Init()
std::ios_base::Init::~Init()
std::cout
std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
___gxx_personality_v0
collect2: ld returned 1 exit status
Anyone nows what I'm doing wrong? Thanks for all the help in advance.
[Edited by - pseudobot on April 19, 2009 7:30:35 PM]