简体   繁体   English

使用子目录中的子模块构建Mercury程序

[英]Building a Mercury program with sub-modules in a subdirectory

I have a mercury program that imports a module from another file. 我有一个从其他文件导入模块的汞程序。 I'd like to be able to put this file in a subdirectory. 我希望能够将此文件放在子目录中。 How can I do this? 我怎样才能做到这一点?

I'm using mmc -E --make --trace deep filename to make the program. 我正在使用mmc -E --make --trace deep filename来制作程序。

I've looked at Building Multi-Module Mercury Programs but it doesn't seem to deal with the subdirectory issue, although I could be wrong. 我看过构建多模块Mercury程序,但它似乎没有处理子目录问题,尽管我可能错了。

You could try the mmc -f list of mercury files option from the directory where you want to import the file in the sub-directory. 您可以从要在子目录中导入文件的目录中尝试mmc -f list of mercury files选项。 This will create a Mercury.modules file that helps mmc -m to resolve all modules 这将创建一个Mercury.modules文件,帮助mmc -m解析所有模块

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM