Hey I have this code:
GCC gives me these errors:Code:#include <windows.h> class Thread { private: //.... public: //..... static void Yield(); };
#1. Thread.hpp:line#: error: declaration does not declare anything
-> this is the line "Yield()" is on
#2. Thread.cpp:line#: error: expected unqualified-id before '{' token
-> this is the line "void Thread::Yield()" is on
#3. Thread.cpp:line#: error: invalid function declaration
-> this is the line "void Thread::Yield()" is on
I think this happens because of the <windows.h> header....
Anyways, why do the errors occur and how do I fix them?
I mean why does Thread::Yield() conflict with Yield()?