Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7712615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:40:34+00:00 2026-06-01T01:40:34+00:00

I have a third party libs. (msvc10) a MT/MD (Static cfgs’s) and dynamic DLL

  • 0

I have a third party libs. (msvc10) a MT/MD (Static cfgs’s) and dynamic DLL cfg.
I have qt + msvc10 express + win sdk.7

Ok , I use the existing examples offered, (using the libs) I can’t compile ….. I have 4 unresolved external errors of the same lib.
(But I have zero errors for the others)
I have not support for these lib…… (but they are legal, I am a member without rights)

Which are the steps to investigate a possible fix? Where I have to look ?
Thanks.

Edit 1:

The errors was:

TD_ExamplesCommon.lib(ExHostAppServices.obj) : error LNK2019: unresolved external symbol __imp__RegEnumValueW@32 referenced in function "public: virtual bool __thiscall ExHostAppServices::ttfFileNameByDescriptor(class OdTtfDescriptor const &,class OdString &)" (?ttfFileNameByDescriptor@ExHostAppServices@@UAE_N ABVOdTtfDescriptor@@AAVOdString@@@Z)
TD_ExamplesCommon.lib(ExHostAppServices.obj) : error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function "public: virtual bool __thiscall ExHostAppServices::ttfFileNameByDescriptor(class OdTtfDescriptor const &,class OdString &)" (?ttfFileNameByDescriptor@ExHostAppServices@@UAE_N ABVOdTtfDescriptor@@AAVOdString@@@Z)
TD_ExamplesCommon.lib(ExHostAppServices.obj) : error LNK2019: unresolved external symbol __imp__RegQueryValueExW@24 referenced in function "public: virtual bool __thiscall ExHostAppServices::ttfFileNameByDescriptor(class OdTtfDescriptor const &,class OdString &)" (?ttfFileNameByDescriptor@ExHostAppServices@@UAE_N ABVOdTtfDescriptor@@AAVOdString@@@Z)
TD_ExamplesCommon.lib(ExHostAppServices.obj) : error LNK2019: unresolved external symbol __imp__RegOpenKeyExW@20 referenced in function "public: virtual bool __thiscall ExHostAppServices::ttfFileNameByDescriptor(class OdTtfDescriptor const &,class OdString &)" (?ttfFileNameByDescriptor@ExHostAppServices@@UAE_N ABVOdTtfDescriptor@@AAVOdString@@@Z)
..\exe\OdaQtApp.exe : fatal error LNK1120: 13 unresolved externals

During this post I have received a solution: I have to link with Advapi32.lib…
My question is : how can I know this ?
I have tried the dependencyywalker, but it cant use the .lib’s….

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T01:40:36+00:00Added an answer on June 1, 2026 at 1:40 am

    During this post I have received a solution: I have to link with Advapi32.lib… My question is : how can I know this?

    When you get an “unresolved external” error from the linker, that means that it was looking for a match for a function or variable name that some object file needs and the linker was unable to find that name defined in one of the object files or libraries.

    Start by looking at the first of these errors (I’ve reformatted it a bit to make it slightly more readable – I encourage yo to do the same next time you come across one of these):

    TD_ExamplesCommon.lib(ExHostAppServices.obj) : error LNK2019: unresolved external symbol
          __imp__RegEnumValueW@32 referenced in function 
          "public: virtual bool __thiscall ExHostAppServices::ttfFileNameByDescriptor(
                class OdTtfDescriptor const &,class OdString &)"
          (?ttfFileNameByDescriptor@ExHostAppServices@@UAE_N ABVOdTtfDescriptor@@AAVOdString@@@Z)
    

    There’s a lot of stuff in that error message (much of it may look like garbage). Fortunately, much of it can be ignored in most cases. The most important item is that the linker is looking for the symbol __imp__RegEnumValueW@32 The name has some gunk on it, but fortunately it’s pretty recognizable anyway.

    • the __imp__ prefix indicates it’s looking for a DLL import. In nearly all cases that can be ignored for your purposes.
    • the @32 suffix is something the Microsoft compiler adds to function names for certain calling conventions. It’s also generally not important for your purposes (for the record it indicates that the function expects 32 bytes of argument data)

    So we’re left with the fact that the linker is looking for RegEnumValueW. That looks a lot like the name of a Win32 API.

    If you look at the docs for RegEnumValueW (or RegEnumValue, since many Win32 APIs have both an A and a W variant to handle ANSI/UNICODE builds) we’ll find in the documentation this bit of information:

        Requirements
    
        Minimum supported client        Windows 2000 Professional
        Minimum supported server        Windows 2000 Server
        Header                          Winreg.h (include Windows.h)
     >> Library                         Advapi32.lib
        DLL                             Advapi32.dll
        Unicode and ANSI names          RegEnumValueW (Unicode) and 
                                        RegEnumValueA (ANSI)
    

    That’s how you know you need advapi32.lib.

    So in the future, when you get an “unresolved external” error from the linker, just ignore most of the gunk in the error message and concentrate on the symbol it says it can’t find – that should lead you to the library, object file or other item you might be missing.

    Just for the record, advapi32.lib will be needed by most Windows applications of any complexity.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use several standard third-party libs (e.g. Apache's log4j) for a small
I have two libraries (third-party), and within each of these libs they have defined
I have third party dlls that I need to use with my application. The
At work we have a third party library we use called MAPI LIB. It
I have a third-party DLL that depends on MSVCR80 and allocates resources that I
I have a third-party dll that I load into software that isn't mine, and
I have a third party dll, that is supposed to return machine name. Sometimes
I have a third party .so that was generated on a 64bit machine. I'd
I have a third-party application that's extensible by adding exe-files that perform dataconversion etc.
I have a third-party jar file that comes with the javadocs for only part

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.