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

  • Home
  • SEARCH
  • 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 8261263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T03:20:47+00:00 2026-06-08T03:20:47+00:00

I am using visual studio 2008 in my MFC + vtk project. There I

  • 0

I am using visual studio 2008 in my MFC + vtk project. There I am getting a linking error as below:

vtkPBFEAView.obj : warning LNK4217: locally defined symbol ?DrawDC@vtkMFCWindow@@QAEXPAVCDC@@@Z (public: void __thiscall vtkMFCWindow::DrawDC(class CDC *)) imported in function “protected: virtual void __thiscall CvtkPBFEAView::OnDraw(class CDC *)” (?OnDraw@CvtkPBFEAView@@MAEXPAVCDC@@@Z)

1>vtkMDIView.obj : warning LNK4049: locally defined symbol ?DrawDC@vtkMFCWindow@@QAEXPAVCDC@@@Z (public: void __thiscall vtkMFCWindow::DrawDC(class CDC *)) imported
1>vtkPBFEAView.obj : warning LNK4217: locally defined symbol ??0vtkMFCWindow@@QAE@PAVCWnd@@@Z (public: __thiscall vtkMFCWindow::vtkMFCWindow(class CWnd *)) imported in function “public: void __thiscall vtkPBFEAViewImpl::initialize(class CWnd *)” (?initialize@vtkPBFEAViewImpl@@QAEXPAVCWnd@@@Z)

1>vtkMDIView.obj : warning LNK4049: locally defined symbol ??0vtkMFCWindow@@QAE@PAVCWnd@@@Z (public: __thiscall vtkMFCWindow::vtkMFCWindow(class CWnd *)) imported
1>vtkPBFEAView.obj : warning LNK4217: locally defined symbol ??1vtkMFCWindow@@UAE@XZ (public: virtual __thiscall vtkMFCWindow::~vtkMFCWindow(void)) imported in function “public: virtual void * __thiscall vtkMFCWindow::`scalar deleting destructor'(unsigned int)” (??_GvtkMFCWindow@@UAEPAXI@Z)

1>vtkMDIView.obj : warning LNK4217: locally defined symbol ??1vtkMFCWindow@@UAE@XZ (public: virtual __thiscall vtkMFCWindow::~vtkMFCWindow(void)) imported in function “public: void __thiscall vtkMDIViewImpl::adjust_contours(int,double,double)” (?adjust_contours@vtkMDIViewImpl@@QAEXHNN@Z)

1>vtkMFCWindow.obj : error LNK2019: unresolved external symbol “_declspec(dllimport) const vtkMFCWindow::`vftable'” (_imp_??_7vtkMFCWindow@@6B@) referenced in function “public: __thiscall vtkMFCWindow::vtkMFCWindow(class CWnd *)” (??0vtkMFCWindow@@QAE@PAVCWnd@@@Z)

Can anyone explain me the reason for this error?

Thanks in advance.

  • 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-08T03:20:48+00:00Added an answer on June 8, 2026 at 3:20 am

    Finally I found the answer for the problem. It was that vtkMFCWindow was configured with /MD option and my main project was configured with /MTd option. And therefore I got the error. Once I removed the __declspec( dllexport ) lines and it worked well.
    Thanks for the help.

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

Sidebar

Related Questions

I am using Visual studio 2008. I have a Visual C project new.vcproj. There
Using Visual Studio 2008: Within the Solution there is a main project (Project1), within
Using Visual Studio 2008, I created a C++ Win32 project. To release the program,
Using visual studio 2008. When I add a new aspx form to a project
Using Visual Studio 2008 - I add a Setup project (from Setup and Deployment
I'm using Visual Studio 2008, and I'm trying to create a new WinCE project.
Using Visual Studio 2008, I keep seeing this error in the output window: _CrtDbgReport:
So, I'm creating an ATL project in visual studio 2008 using the wizard (recommended
In a visual studio C++ project, would MFC be faster than using the CLR?
I am using Visual Studio 2008 and I get the following error message when

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.