English 中文(简体)
具体列明表格的目录
原标题:Specify directory where gfortran should look for modules

目前,我根据模块(例如主要方案<代码>foo,依靠模块<条码>/条码>)编制以下方案:

gfortran -c bar.f90
gfortran -o foo.exe foo.f90 bar.o

在<代码>foo.f90和bar.f<90/code>上,该行文是同一份名录。 我如何具体列出一份目录,其中gfortran应当查阅bar.o。 当我打电话到<条码>条码>,<条码>,>foo.f90? (一) 我不想具体规定汇编者应当连接<条码>bar.o。 具体地说,我只想找到它。

最佳回答
问题回答

在汇编包含模块的“终端源代码”时,与标书一起创建了一个单元。 改性文档应与使用该模块的原始档案目录相同,或在汇编时应当使用——I国旗:

gfortran -c bar.f90 
gfortran -c foo.f90 -I$PATH_TO_MOD_FILE
gfortran -o foo.exe foo.o bar.o

请注意,在汇编时间f90时需要存在。





相关问题
Working with modules in IntelliJ IDEA

As I understand, using modules allows us to control some dependencies. I mean that we can allow one module to interact with another one but not vise versa. We also can make some reusable things and ...

Module import path

I m unable to test-run a cssparser that I d like to use. test.py: from css.parse import parse data = """ em { padding: 2px; margin: 1em; border-width: medium; border-style: ...

Problem modulating action script project

I am refactoring a hugh action script solution in Flash builder (beta 2) using the flex 4 sdk. The project does NOT use the mx framework. What i want to have is: A big MAIN project several small ...

Test modules with Test::Unit

I encountered a problem when trying to test a module with Test::Unit. What I used to do is this: my_module.rb: class MyModule def my_func 5 # return some value end end test_my_module.rb: ...

Drupal section accessible by role

I need to limit access of content on Drupal site based on the Drupal User s Role. http://site.com/managers/intro http://site.com/managers/reviews http://site.com/managers/up-for-raises The ...

How to find where a function was imported from in Python?

I have a Python module with a function in it: == bar.py == def foo(): pass == EOF == And then I import it into the global namespace like so: from bar import * So now the function foo is ...

How to wire two modules in Verilog?

I have written two modules DLatch and RSLatch and i want to write verilog code to join those two.

热门标签