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

LINK : fatal error LNK1181: cannot open input file 'case_a_1.obj'

Koon_Lim_Luw
Beginner
1,933 Views

Hi guys,

I have some problem with my Intel fortran that it does not working properly.

Below are the error message and I hope you guys can help me about this. Thanks in advance.

Intel Visual Fortran Intel 64 Compiler Professional for

applications running on Intel 64, Version 11.1 Build 20091130

Package ID: w_cprof_p_11.1.054

Copyright (C) 1985-2009 Intel Corporation. All rights reserved.

ifort: command line warning #10161: unrecognized source type 'case_a_1';

object file assumed Microsoft Incremental Linker Version

9.00.21022.08 Copyright (C) Microsoft Corporation. All rights reserved.

-out:case_a_1.exe

-subsystem:console

case_a_1

LINK : fatal error LNK1181: cannot open input file 'case_a_1.obj'

0 Kudos
8 Replies
ZlamalJakub
New Contributor III
1,933 Views

It seems to me that case_a_1.obj is not created (compiled) when linker is invoked. Is file case_a_1.f90 included in project?

Jakub

0 Kudos
Koon_Lim_Luw
Beginner
1,933 Views

Hi Jakub,

Yes, the file (case_a_1.f90) was included in the project.

Rgrds,

Luw

0 Kudos
ZlamalJakub
New Contributor III
1,933 Views

Is file case_a_1.obj present in directory where linker searches for it?

Can be case_a_1.f90 compiled from Visual studio using Ctrl+F7?

Are there another source files in project which are compiled OK?

I think that problem can be that You set different path where linker searches for object files than path where compiler stores object files.

Jakub

0 Kudos
Koon_Lim_Luw
Beginner
1,933 Views

Hi,

Yes, the file is present in that directory and i can compile it.

Current I'm writting a user sub-routine to run Marc and the error message as below,

LINK : fatal error LNK1104: cannot open file 'bufferoverflowu.lib'

link failed for case_a_1.obj

Thanks

0 Kudos
ZlamalJakub
New Contributor III
1,933 Views

Can You send zipped project directory? I think You have not correctly set paths, where fortran tries to find files.

Jakub

0 Kudos
Koon_Lim_Luw
Beginner
1,933 Views

Hi Jakub,

Sorry that I don't get you. You want me to zip the folder that I run for analysis, including all the files?

Luw

0 Kudos
ZlamalJakub
New Contributor III
1,933 Views

My suggestion is to send to forum source files (*.f90), project file *(.vfproj) and additional libraries (*.lib) if you are using nonstandard libraries not included in compiler.

We can try to compile your project and find problem.

Jakub

0 Kudos
Lorri_M_Intel
Employee
1,933 Views

You don't show the actual command, but this error message says to me that you said:

ifort case_a_1

instead of

ifort case_a_1.f90

It is true that CVF would default the extension if it wasn't there, but ifort does not do that. You need to explicitly list the filename plus extension.

- Lorri

0 Kudos
Reply