Unresolved external symbol - IdnToAscii
Asked Answered
S

1

5

I tried to build the following sample application available on msdn: http://msdn.microsoft.com/en-us/library/windows/desktop/dd319089%28v=vs.85%29.aspx

I created a new C++ command line project in Visual Studio 2012 Premium on a windows 7 64bit box, and copied the code of the sample in the main cpp file.

When I try to compile, I get the following error:

Error   1   error LNK2001: unresolved external symbol __imp__IdnToAscii@20

From other posts of people having similar errors, I figure I'm supposed to include some header or lib file. But which one(s)? How do I do that in VS2012/C++ (I'm a complete c++ noob...)

Sibie answered 21/9, 2012 at 12:50 Comment(0)
B
14

It seems from MSDN, you need to link against Normaliz.dll.

Try adding Normaliz.lib in Linker -> Input -> Additional Dependencies

Image

Beslobber answered 21/9, 2012 at 13:11 Comment(2)
Could you kindly tell me how to achieve this in VS 2012?Sibie
I would first search whether Normaliz.dll exists on the system. If yes, then see whether linker has the path to look into where this dll resides.Beslobber

© 2022 - 2024 — McMap. All rights reserved.