Visual Studio decided today is the time to throw up cryptic errors.
I'm guessing this has got to be with my usage of strings as a return type. However I dunno what I did wrong there because I used using namespace std; and also used using std::string, which is what I need iirc.
So I'm not sure what's wrong there.
The only problem is I'm not sure if it's worth the hassle to try and do string return types or I should just take a string reference instead.
EDIT: I've gotten it working using string&, but I'm leaving this on to ask which is better to use.
Edited by 3930K - 11/10/12 at 12:17pm
Quote:
Error 1 error LNK2019: unresolved external symbol "class std::basic_string,class std::allocator > __cdecl open(void)" (?open@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ) referenced in function "int __cdecl input(void)" (?input@@YAHXZ) c:\Users\3930k\documents\visual studio 2012\Projects\topsecretapp\maindir\defp.obj topsecretapp
I'm guessing this has got to be with my usage of strings as a return type. However I dunno what I did wrong there because I used using namespace std; and also used using std::string, which is what I need iirc.
So I'm not sure what's wrong there.
The only problem is I'm not sure if it's worth the hassle to try and do string return types or I should just take a string reference instead.
EDIT: I've gotten it working using string&, but I'm leaving this on to ask which is better to use.
Edited by 3930K - 11/10/12 at 12:17pm






