CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    May 1999
    Posts
    5

    unresolved external symbols

    I need to make use of a MFC function in a C program (windows environment) so i included
    the header file (ie MFC.h) for the MFC function in the C file. when complied using Visual C++ 5.0 i have
    unresolved externals symbols during linking. the unresolved external symbols belong to the
    MFC function that i want to use. I have also tried to use extern but it doesnt help. And the MFC>h and MFC.cpp files have been added to the project space (using right click -> add files to project). Does
    anyone has any idea? Thanks in advance.


  2. #2
    Join Date
    Apr 1999
    Location
    New Zealand
    Posts
    8

    Re: unresolved external symbols

    Make sure that in Project / Settings, you have selected MFC from the "General" tab.

    If you don't, then the appropriate libraries will not be linked, hence the unresolved externals.

    Hope this helps.


  3. #3
    Join Date
    May 1999
    Posts
    5

    Re: unresolved external symbols

    I have done that too ie set the project setting to "USE MFC as SHARED DLL"


  4. #4
    Join Date
    May 1999
    Posts
    5

    Re: unresolved external symbols

    Also, the C program is already a DLL and the MFC code is a stand alone program.


  5. #5
    Join Date
    Apr 1999
    Location
    New Zealand
    Posts
    8

    Re: unresolved external symbols

    Oh. Sorry. I don't have too much XP with DLL's.

    Sometimes DevStudio is really annoying. Maybe a complete re-build will do the trick, if not then I don't know.


  6. #6
    Join Date
    May 1999
    Posts
    318

    Re: unresolved external symbols

    What exactly is your problem ?
    What is exactly the unresolved external symbol ?
    What do you mean with "MFC.H" ?

    Perhaps more precise informations could help finding a solution to your problem.




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured