I am a novice at C++ coding and this is my first post on Stack Overflow.
I am coding a text based game in Visual C++ and I have been getting the C2084 error in this file:
//game_system_functions.cpp
#include "basicdefines.h"
namespace
{
using namespace std;
void clear_console()
{
if (system("CLS")) system("clear");
}
}
I find this odd, because it is only happening in This File. All the other .cpp files have no problem with functions and they are all in a similar format.
I have checked and double checked all my code, and there is no other function called clear_console. I have tried renaming the function to a bunch of random letters, and I still get the same error. Other functions in the same .cpp file get a similar error. This issue has been bothering me for the past week, and I can't solve it.
I have read other posts about error C2084
and they aren't having this problem.
I would appreciate some help regarding this error.
Thank you.
P.S. I apologize about any formatting problems, as I said earlier in the post, this is my first time posting on stack overflow and sorry if the title is a little undescriptive.