[Solved] error LNK2019 – I feel like my code should compile but am getting this error [closed]

You have dimension mismatch in your genData parameter and rain array: You have: double rain [YEARS][MONTHS]; but used it in a wrong way: void getData (double rainArray[][YEARS], int yearArray[]) //^^^ should be rainArray[YEARS][MONTHS] similar issue for the printData function solved error LNK2019 – I feel like my code should compile but am getting this error … Read more

[Solved] Linker Errors LNK2019 and LNK1120 in single file code

From the documentation: unresolved external symbol ‘symbol’ referenced in function ‘function’ The compiled code for function makes a reference or call to symbol, but that symbol isn’t defined in any of the libraries or object files specified to the linker. This error message is followed by fatal error LNK1120. You must fix all LNK2001 and … Read more