Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

error code 1

wleklnsk
Beginner
839 Views
I am a new user and am trying to compile a fortran 90 file named d3.f90 which had been successfully compiled by another fortran 90 compiler. I get the error "can't open d3.obj for write; compilation aborted for d3.f90 (code 1)". I do not know what is wrong.

JW
0 Kudos
5 Replies
TimP
Honored Contributor III
839 Views
Either d3.obj was created by another account, you removed write permission from it, or you don't have permission to create a file in your current working directory.
0 Kudos
wleklnsk
Beginner
839 Views
Quoting - tim18
Either d3.obj was created by another account, you removed write permission from it, or you don't have permission to create a file in your current working directory.
Thanks. I do not hav ethe permission is the answer. This is about Windows, but do you know how to set permission?
0 Kudos
wleklnsk
Beginner
839 Views
Quoting - tim18
Either d3.obj was created by another account, you removed write permission from it, or you don't have permission to create a file in your current working directory.

actually, permission was not the answer, and neither were the other things. I need to know why the trial version, when installed, is not acknowledging files in its directory which are clearly write/read permissible.
0 Kudos
TimP
Honored Contributor III
839 Views
Quoting - wleklnsk

actually, permission was not the answer, and neither were the other things. I need to know why the trial version, when installed, is not acknowledging files in its directory which are clearly write/read permissible.
The compiler installation removes permissions from its own directories. You must work in a directory where you have full permissions.
0 Kudos
Steven_L_Intel1
Employee
839 Views
It's not that - Windows Vista and later does not allow users to write into folders under Program Files - this is a security measure meant to protect against malware. As Tim says, create a folder outside Program Files to do your work.

The trial version is absolutely identical to the product version except for the terms of the license (and the lack of the included Visual Studio.)
0 Kudos
Reply