我要评分
获取效率
正确性
完整性
易理解

After a Dependency Package Is Configured, an Error Message Is Displayed Indicating that the Dynamic Link Library Cannot Be Found

Symptom

After a dependency package is configured, an error message is displayed indicating that the dynamic link library cannot be found.

Key Process and Cause Analysis

The dynamic link library is not loaded in the environment variables.

Conclusion and Solution

Check the environment variables. The NetCDF path does not have the corresponding library. The NetCDF-C path is separated from the NetCDF-Fortran path. As a result, the NetCDF-Fortran library function cannot be found. Therefore, you need to reload the environment variables. If the program to be compiled uses Fortran and C at the same time, place the two dependency packages in the same directory.