0

I've been given a legacy fortan IV program that I need to compile for a legacy programming languages class and I've been instructed to use the Watcom IDE from http://www.openwatcom.org/index.php/Downloads.

My steps are as follows:

  1. Install the IDE to C:\Program Files\Watcom Fortan Compiler
  2. Create a new Project at C:\sampleProject.wpj
  3. Select Win32 (NT/95/Win32s) target environment
  4. Select Windows Executable (.exe) for Image type
  5. Select 'New Source' under 'Sources' menu
  6. Locate and successfully add C:\hilbert.for file to the project
  7. Select 'Make all' from the main menu bar

My build environment:

  1. Windows 7 x64 SP 1
  2. Intel Core i7-3720QM @ 2.6GHz
  3. 16GB RAM

Results:

cd C:\ - "Can't find a filename in 'cd C:\'"
wmake -f C:\sampleProject.mk -h -e - "Can't find a filename in 'wmake -f C:\sampleProject.mk -h -e'"
wfc386 \hilbert.for -d2 -q -dep - "Can't find a filename in wfc386 \hilbert.for -d2 -q -dep'"
Error(E14): Cannot execute (wfc386): No such file or directory
Error(E42): Last command making (C:\hilbert.obj) returned a bad status
Error(E02): Make execution terminated
Execution complete
4

1 回答 1

1

到目前为止,我遇到了三个问题。

  1. 我最初下载了错误的 IDE。如果您找不到 wfc386 文件,那么您可能没有下载正确的版本。我错误地下载了 C/C++ 编译器。
  2. 不支持安装到包含空格的路径。旧软件万岁。
  3. 不支持将项目存储到包含空格的路径。再次为旧软件万岁。

解决方案:

  1. 将您的安装移动到 C:\Watcom
  2. 将您的项目移动到 C:\Projects 或 C:\Watcom\Projects 之类的位置
  3. 根据您移动 Watcom 安装的位置,将所有本地环境变量从旧值更新为新的正确路径
于 2013-09-03T20:53:11.640 回答