Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. can't run unicode/normalize example

can't run unicode/normalize example

Scheduled Pinned Locked Moved C / C++ / MFC
visual-studiocomdebugginghelptutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    permutations
    wrote on last edited by
    #1

    I'm trying to run some sample code from the Microsoft site that demonstrates Unicode normalization: http://msdn.microsoft.com/en-us/library/dd319092(v=VS.85).aspx[^] It compiles, but I get two link errors:

    Linking...
    UnicodeTest.obj : error LNK2019: unresolved external symbol __imp__NormalizeString@20 referenced in function "void __cdecl TryNormalization(enum _NORM_FORM,wchar_t *)" (?TryNormalization@@YAXW4_NORM_FORM@@PA_W@Z)
    UnicodeTest.obj : error LNK2019: unresolved external symbol __imp__IsNormalizedString@12 referenced in function "void __cdecl TryNormalization(enum _NORM_FORM,wchar_t *)" (?TryNormalization@@YAXW4_NORM_FORM@@PA_W@Z)
    Debug\UnicodeTest.exe : fatal error LNK1120: 2 unresolved externals

    The DLL with these functions is on my system here: C:\Windows\System32\normaliz.dll So why am I getting the link errors? If I try to define the stuff it says is not defined, I then get an error that it's already defined. :confused:

    A 1 Reply Last reply
    0
    • P permutations

      I'm trying to run some sample code from the Microsoft site that demonstrates Unicode normalization: http://msdn.microsoft.com/en-us/library/dd319092(v=VS.85).aspx[^] It compiles, but I get two link errors:

      Linking...
      UnicodeTest.obj : error LNK2019: unresolved external symbol __imp__NormalizeString@20 referenced in function "void __cdecl TryNormalization(enum _NORM_FORM,wchar_t *)" (?TryNormalization@@YAXW4_NORM_FORM@@PA_W@Z)
      UnicodeTest.obj : error LNK2019: unresolved external symbol __imp__IsNormalizedString@12 referenced in function "void __cdecl TryNormalization(enum _NORM_FORM,wchar_t *)" (?TryNormalization@@YAXW4_NORM_FORM@@PA_W@Z)
      Debug\UnicodeTest.exe : fatal error LNK1120: 2 unresolved externals

      The DLL with these functions is on my system here: C:\Windows\System32\normaliz.dll So why am I getting the link errors? If I try to define the stuff it says is not defined, I then get an error that it's already defined. :confused:

      A Offline
      A Offline
      Adam Roderick J
      wrote on last edited by
      #2

      I never used NLS, but expect NLS to have some lib, mostly Normaliz.lib. U have linking error, so try after including Normaliz.lib for linking.

      Величие не Бога может быть недооценена.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups