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 694645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T02:52:40+00:00 2026-05-14T02:52:40+00:00

I am using a makefile system with the pvcs compiler (using Microsoft Visual C++,

  • 0

I am using a makefile system with the pvcs compiler (using Microsoft Visual C++, 2008 compiler) and I am getting several link errors of the form:

error LNK2019: unresolved external symbol __imp__RegisterFilter@8 referenced in function _main

This is happening DESPITE using the extern "C" declaration, viz.:

extern "C" int CLRDUMP_API RegisterFilter( LPCWSTR pDumpFileName, unsigned long DumpType );

Also, in the makeexe.mak, the library is being linked in as:

$(COMPILEBASE)\lib\clrdump.lib \

To be honest, I am not an expert at makefiles, and I am changing over a system from Microsoft Visual C++ 6.0 to 2008. This change-over may have something to do with the link errors, as the system used to work before.

Any help would really be appreciated.

Thanks in Advance,

Sincerely,
Joseph

— Edit 1 —

Does anyone know how to turn verbose on in the makefile system of pvcs?

Note that the above function is already a compiler-decorated version, having

__imp__RegisterFilter@8

whereas the C++ function is just

RegisterFilter

Thanks for the help, but if anyone can post a more complete solution, that would also be very appreciated.

Sincerely, Joseph

— Edit 2 —

Some kind person posted this, but when I signed in it disappeared:

The imp prefix indicates that this function is imported from a DLL. Check the definition of CLRDUMP_API – is it __declspec(dllimport)? See this article for more information.

There was a working link, but I’ve lost that, however I suppose one can always search the topic.

Thanks, whoever you were!

— Edit 3 —

Thanks ChrisN (I’m not yet allowed to vote). Despite using the refresh button, your answer disappeared, but then re-appeared after I posted a cut-n-paste.

This is my definition of that:

define CLRDUMP_API __declspec(dllimport) __stdcall

I assume that the __stdcall is OK?

— Edit 4 —

While I appreciate the efforts of those who answered, particularly ChrisN, at least on my particular system, the link error remains. So if anyone has any further insight, I’d appreciate it. Thanks again.

  • 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-05-14T02:52:41+00:00Added an answer on May 14, 2026 at 2:52 am

    I was creating a simple Win32 c++ application in VS2005 and I was getting this error:

    LNK2019: unresolved external symbol __imp__somefunction
    

    This application was using property sheets, hence it required this header (prsht.h).

    The solution to my problem was as follows: in program Properties→Configuration Properties→Linker→General, I set Additional Library Directories to "C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Lib".

    Also in program Properties→Configuration Properties→Linker→Command line for the Additional Options, I added ComCtl32.Lib ComDlg32.Lib.

    My program is now compiling without any problems. My two cents: you need to identify all the libraries that your program requires. Hint: check all the headers you have included, you need to make sure that your linker can see them.

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

Sidebar

Related Questions

I'm using a makefile to automate some document generation. I have several documents in
Im trying to link my program to the shared library. Im using a makefile
I have a system for building my software already set up, using a makefile
I'm trying to compile .cpp files as objective-c++ using makefile as few of my
I'm working on using a Makefile to help perform build steps for my JS
I'm trying to compile some fortran files in Xcode, using a makefile made by
I'm using the socket.makefile method to create a file-like object on a UDP socket
I'm writing a custom makefile project using QtCreator and I want to delete a
I have a makefile project that builds and links a DLL, using the command-line
I'm using GNU Make 3.81, and I have the following rule in my Makefile:

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.