GC you got those errors because you used a namespace and then didn't use
std::cout
you used
cout.
Heres the program i wrote to demonstrate how to use the header. i tried to post it yesterday to help answer inq's question bout namespace but it wouldn't let me:
Code:/* Steven Billington * October 30, 2002 * ColorTest.cpp * * petter-color.h allows you to use colors with cout in win32 * Copyright (c) 2002 * * petter-color.h made by Petter ("Sang-drax") Strandmark */ /* Preprocessor Directives*/ #include <iostream.h> #include <windows.h> #include <petter-color.h> #include <stdlib.h> /* Namespaces needed for correct functioning*/ using namespace std; using namespace Petter; int main() { /* Examples of colored text*/ std::cout<<RED<<"This text is red.\n"; std::cout<<BLUE<<"This text is blue.\n"; std::cout<<WHITE<<"This text is white.\n"; std::cout<<GREEN<<"This text is green.\n"; std::cout<<NORMAL<<"\n"; system("pause"); /* Good practice to return value for main*/ return 0; }