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...)

Community
  • 1
  • 1
marapet
  • 54,856
  • 12
  • 170
  • 184

1 Answers1

12

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

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

Image

Mahesh
  • 34,573
  • 20
  • 89
  • 115
  • Could you kindly tell me how to achieve this in VS 2012? – marapet Sep 21 '12 at 13:50
  • 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. – Mahesh Sep 21 '12 at 13:56