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

Linking error "ambiguous" when adding external library

Anders_S_1
新分销商 III
1,377 次查看

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

标签 (1)
0 项奖励
2 回复数
Arjen_Markus
名誉分销商 II
1,357 次查看

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
新分销商 III
1,347 次查看

Hi Arjen,

Thanks a lot for a rapid response!!

Your advice solved the problem!

Best regards

Anders S

0 项奖励
回复