I am having some issues with C++ currently, and i've googled around and it says im doing it correct.
I got a Network.h file that contains:
extern std::string response;
Then I got a Network.cpp file that contains:
#include "Network.h"
std::string response;
response = "example"
Then I have a main.cpp file that contains:
#include <iostream>
#include "Network.h"
int main(int argc, char* argv[]) {
std::cout << "Test Response (" << response << ")" << std::endl;
}
But it's giving me unresolved external symbol, and I don't know why since I have defined it in 1 cpp file, and externed it in the header file.