This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C++ include



Hi Champs,

a basic C++ question. This simple hello world example compiles fine without any error or warning, but doesn't print to the console:

#include <iostream>
using namespace std;

int main(void)
{
    cout << "hello\n" << endl;
    return 0;
}

Changing the the first line to #include <iostream.h> does the trick.

I found that there are two files in the comiler/include directory

iostream and iostream.h which explains that I see no warning.

Why are those 2 files different? Why is iostream not working with CCS console and what is it's purpose?

Kind regards,

one and zero

P.S.: ... this is C6000 CGT 7.3.5 ... but I guess this applies to other architectures as well ...