I've been using jGrasp for the past year to compile my programs and I'm switching over to VS. Why can't I get any of my old .cpp files to compile? They compile on jgrasp, and I keep getting errors like this:
Code:
1>test.obj : error LNK2019: unresolved external symbol "void __cdecl menu(struct Store,int)" (?menu@@YAXUStore@@H@Z) referenced in function _main
1>test.obj : error LNK2019: unresolved external symbol "int __cdecl getData(struct Store,int)" (?getData@@YAHUStore@@H@Z) referenced in function _main
1>test.obj : error LNK2019: unresolved external symbol "void __cdecl display(struct Store,int)" (?display@@YAXUStore@@H@Z) referenced in function "void __cdecl menu(struct Store * const,int)" (?menu@@YAXQAUStore@@H@Z)
1>test.obj : error LNK2019: unresolved external symbol "void __cdecl reData(struct Store &,int)" (?reData@@YAXAAUStore@@H@Z) referenced in function "void __cdecl menu(struct Store * const,int)" (?menu@@YAXQAUStore@@H@Z)
1>C:\Users\Barazin\Documents\Visual Studio 2008\Projects\test2\Debug\test2.exe : fatal error LNK1120: 4 unresolved externals
Also, is there a way to avoid having to use cin.get() so I'm able to see my code execute?