小编Sam*_*ins的帖子

找不到Pascal CloseFile

我一直在用Delphi编写程序,而我想做的就是用“保存文件”设置游戏。我一直在Delphi中进行此操作,而不是在将代码带回家时才使用Pascal编译器,由于出现以下错误,我似乎无法运行程序

Free Pascal Compiler version 2.6.2-8 [2014/01/22] for x86_64                                                                                                     
Copyright (c) 1993-2012 by Florian Klaempfl and others                                                                                                           
Target OS: Linux for x86-64                                                                                                                                      
Compiling control.p                                                                                                                                              
control.p(44,12) Error: Identifier not found "CloseFile"                                                                                                         
control.p(116,14) Error: Identifier not found "closeFile"                                                                                                        
control.p(127,13) Error: Identifier not found "assignFile"                                                                                                       
control.p(143,4) Fatal: There were 3 errors compiling module, stopping                                                                                           
Fatal: Compilation aborted                                                                                                                                       
Error: /usr/bin/ppcx64 returned an error exitcode (normal if you did not specify a source file to be compiled)
Run Code Online (Sandbox Code Playgroud)

抱歉,如果这是一个愚蠢的问题,但是我对文件不熟悉,我真的希望它能够正常工作。以下是我当前使用的所有代码,以防万一您需要它,如果它混淆了其草稿,并表示感谢,请您谅解。

program Task3;

{$APPTYPE CONSOLE}
{$R *.res}

uses …
Run Code Online (Sandbox Code Playgroud)

pascal fpc

1
推荐指数
1
解决办法
1638
查看次数

标签 统计

fpc ×1

pascal ×1