I am woking on a fortran code. The code makes a reference to a file named netcdf.inc, which contains the definitions of several variables to be used in the main program. This netcdf.inc file is part of the build Resource files, and yet when I try compiling I get the error "LNK2019: unresolved external symbol" for every single variable that is defined in netcdf.inc and is referenced in the main code. I am kind of new to this so I would appreciate any guidance on why this may be happening - I've tried including the various variables within the main code and forego the whole "include netcdf.inc" to see if that was the problem, but that didn't fix the bug. Within the 'netcdf.inc' file, the variables are defined like this:
For each of them. Not sure if that helps. I'm attaching a screenshot of my workspace. Thank you!