Heres sample code:
static vector<string> default_vs;
string default_s = string();
int blablabla(string bla = "", vector<string>& blabla = default_vs, string& bla = default_s)
heres what the header file would look like (without the include crap):
using namespace std;
int blablabla(string bla = "", vector<string>& blabla = default_vs, string& bla = default_s);
Here is the problem: when I try to compile, it has an error that the defaults werent declared in the header file. I include them, and when I compile it says that those variables were already declared, and opens a completely irrelevant part of my project that has nothing to do with it.
If I take the declarations out of my .cpp file, it gives errors as well: compiler: "blabla was not declared in this scope..." me: "I know, because you were bitching about that."
So, is here some way for me to fix this. it wont let me include it, and it wont let me not include it. there aren't any other options, unless I'm writing it wrong.
Any help is appreciated! Thank you for your time, I'm very tired.
Also, I wouyld like to note I'm not includeing the header file in a .cpp file it has a function in, so thats not the problem.