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

Linking error "ambiguous" when adding external library

Anders_S_1
New Contributor III
773 Views

Hi,

I have moved from Fortran Cluster Edition 2018_2 to 2019_0 and got a linkage error

"ambiguous", when I try to add an external library. I also use VS 2017.

The linker output from the command line linking is attached.

What to do to resolve the problem?

Best regards

Anders S

Labels (1)
0 Kudos
2 Replies
Arjen_Markus
Honored Contributor I
753 Views

The ambiguity is that you have an option "/C:\....lib". Remove the leading "/", because the compiler/linker assumes that that is the start of a compiler/linker option, whereas you seem to mean the full name of a library.

I do not know what options may lead to the ambiguity itself, but it is clear that the slash is a mistake.

Anders_S_1
New Contributor III
743 Views

Hi Arjen,

Thanks a lot for a rapid response!!

Your advice solved the problem!

Best regards

Anders S

0 Kudos
Reply