I'm trying to add two variables (both strings) in Dev-C++, and it tells me that there's no matching operator+. Every tutorial and example I've found on the net says that the syntax I'm using is just fine, so I don't understand why I'm getting this error. If anyone could help, that would be great. Thanks in advance. Here's the code, rather short. The declarations have values other than NULL, but I didn't think it was particularly important.
Code://DECLARED AT THE GLOBAL SCOPE string MOD_DIR = NULL; //DECLARE AT THE FUNCTIONAL SCOPE string filename = NULL; int config_Type switch(config_Type) { case 1: filename = MOD_DIR + filename + ".ini"; break; }