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

fatal error LNK 1181: cannot open input file 'Util.lib;'

isabelv
Beginner
1,317 Views
I need to recompile some Fortran source code which requires 3 libraries. I was just able to build them in Intel Fortran as static library. However, here comes a linking problem; I've been playing around with different dependencies in the project settings, but none worked.

The errors are
489 error #11018: Cannot open Util.lib ipo
490 error #11018: Cannot open Adwdm.lib; ipo
491 error #11018: Cannot open Wdm.lib; ipo
367 fatal error LNK1181: cannot open input file 'Util.lib;' LINK
My current settings are:
* in project properties
Linker>General>Additional Library Directories>C:\\Program Files\\model3\\lib
Linker>Input>Additional dependencies>Adwdm.lib; Wdm.lib; Util.lib
* in C:\\Program Files\\model3
..\\lib Adwdm Util Wdm (Object File Library)

What did I do wrong? Please help to point it out. Thanks a lot.
0 Kudos
2 Replies
mecej4
Honored Contributor III
1,317 Views
The message

> cannot open input file 'Util.lib;'

conveys a hint that there are some wayward semicolons appended to the library names. Check the linker command in the project properties to see if it contains those semicolons. Names of objects and libraries are to be separated by spaces in the linker command line.
0 Kudos
isabelv
Beginner
1,317 Views
Does it mean i should remove ; in Linker>Input?
Now i add the additional dependencies like
>Liner>Input>Additional Dependencies> Util.lib Adwdm.lib Wdm.lib
separated by spaces?
0 Kudos
Reply