When you try to use a variable from a module to local function, you may get following error.
Syntax error, found '::' when expecting one of: => ( :
What is the problem? Done something wrong in using ONLY option in Fortran.
Here is a detailed answer on how to use DATA from other modules.
https://stackoverflow.com/questions/1240510/how-do-you-use-fortran-90-module-data
This means that you have used "::" instead of just ":".
After compiling this, I got following error.
Name in only-list does not exist or is not accessible. [variable_name]
USE module_name, ONLY : variable_name
Syntax error, found '::' when expecting one of: => ( :
What is the problem? Done something wrong in using ONLY option in Fortran.
Here is a detailed answer on how to use DATA from other modules.
https://stackoverflow.com/questions/1240510/how-do-you-use-fortran-90-module-data
This means that you have used "::" instead of just ":".
After compiling this, I got following error.
Name in only-list does not exist or is not accessible. [variable_name]
USE module_name, ONLY : variable_name
No comments:
Post a Comment