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

Compile error using intel fortran on windows 10 of PC

Suh
Beginner
1,467 Views

I officially bought Intel@oneAPI Base & HPCm Toolkit (Single-Node) named-user-Commercial(ESD).

I downloaded Intel one API Base Toolkir(all tools : 2.71GB)  and Intel HPS Toolkit (all tools : 1.22GB)

for windows.

I installed the Intel fortran compiler for window on PC successfilly.

But the fortran compiler do not operate nornally on my PC.

I made a simple test fortran program and I compilered it on DOS command.

The program generated only "test.obj" and do not create "test.exe".

 

> ifort test.f

-subsystem : console

test.obj

LINK : fatal error LINK1104 : can not open file : "test.exe"

 

What is the wrong?

 

0 Kudos
1 Solution
mecej4
Honored Contributor III
1,357 Views

Even if you restrict yourself to compiling, linking and running CLI programs from the Windows command window (which you incorrectly called the "DOS prompt"), you still need to have enough of the Visual Studio/Microsoft C compilation system to be able to compile, link and run a C/C++ program. This is listed under the software requirements for Intel OneAPI.

View solution in original post

6 Replies
mecej4
Honored Contributor III
1,452 Views

What is the full path of the directory in which you are trying to get the linker to write the file "test.exe"?

0 Kudos
Suh
Beginner
1,435 Views

I connected path "c:\program files (x86)\intel\openapi\compiler\2024.0\bin

and "c:\program files (x86)\intel\openapi\compiler\2024.0\lib"

 

But only "test.obj" is generated and do not create "test.exe" file

 

0 Kudos
Steve_Lionel
Honored Contributor III
1,379 Views

Check your antivirus software as sometimes such software locks writable EXE files for analysis. I'll also comment that this is not a compile error - if the .obj was created, the compile succeeded.

Suh
Beginner
1,360 Views

Thank you.

I only bought the oneAPI Base and HPC tookit.  Some people told me if you want to

operate intel fortran on window 10, you have already installed MS visual studio.

Is it true? I do not have MS visual studio because I want to run some fortran programs on DOS command.

 

0 Kudos
mecej4
Honored Contributor III
1,358 Views

Even if you restrict yourself to compiling, linking and running CLI programs from the Windows command window (which you incorrectly called the "DOS prompt"), you still need to have enough of the Visual Studio/Microsoft C compilation system to be able to compile, link and run a C/C++ program. This is listed under the software requirements for Intel OneAPI.

Suh
Beginner
1,347 Views

Thank you, mecej4

From your comments, I know that I have to take a MS visual studio 2022 for running the intel fortran

compiler successfully  on my PC.

0 Kudos
Reply