Sorry I'm not too bright, but I need some help here:
Im trying to split up my code, by includding different header and cpp files, but it give me errors like this:
Code:
1>colorIt.obj : error LNK2005: "void __cdecl blue_grey(void)" (?blue_grey@@YAXXZ) already defined in cosmosII_client.obj
This is my delcaration in main.cpp:
Code:
#include "global.h"
#include "colorIt.cpp"
colorIt.cpp:
#define _WIN32_WINNT WINVER
#ifdef WIN32
#endif
// INTERFACE FUNCTIONS:
// font colors>>
Code:
void tred()
{
#ifdef WIN32
HANDLE hstdo;
hstdo = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(hstdo, FOREGROUND_RED);
#endif
}
Help me make it so the files work. One time I tryed it a different way, and it compiled, but it didnt print any console colorS!