MFC Link error 2001

Hello !

I have just started to test OCC5.1 with MFC6.0 under the Windows XP environment.
When installing the software, I should kill the setup process when it comes to the step of "deleting backup files (???)".
Despite this trouble, it seems to be ready to work after rebooting.

However, the first trial with the MFC standard sample "Geometry" cannot be built due to link errors as follows. I did not change any project settings:

Linking...
Creating library ../Release/Geometry.lib and object ../Release/Geometry.exp
GeomSources.obj : error LNK2001: unresolved external symbol "public: __thiscall CResultDialog::CResultDialog(class CWnd *)" (??0CResultDialog@@QAE@PAVCWnd@@@Z)
MainFrm.obj : error LNK2001: unresolved external symbol "public: __thiscall CResultDialog::CResultDialog(class CWnd *)" (??0CResultDialog@@QAE@PAVCWnd@@@Z)
GeometryApp.obj : error LNK2001: unresolved external symbol "public: __thiscall CResultDialog::CResultDialog(class CWnd *)" (??0CResultDialog@@QAE@PAVCWnd@@@Z)
... and many such lines...

Please help me to open the first door.

Thanks in advance.

Forum supervisor's picture

Hello,

The problem is that you killed the setup making it incomplete :(
Read carefully the last slide of the installation - "... it may take up to 50 minutes to install...".

So, arm with patience and let the setup complete successfully.

Best regards,
Forum supervisor

Sandor Racz's picture

Hi,

The problem here is the we need to build the 'mfcsample' sample problem first as well and the usage of the resulting mfcsample.dll fixes the problem.

Regards,

Sandor

GC's picture

Hello! I wish an happy new year to all the users of OC (especialy to whose have problem with OC :-)
I have the same problem with OCC5.1, with MFC6.0 under Windows XP environnement.
when linking i get:
error LNK2001: unresolved external symbol "public: __thiscall Handle_BOP_HistoryCollector::~Handle_BOP_HistoryCollector(void)" (??1Handle_BOP_HistoryCollector@@QAE@XZ)
And i have reinstaled OCC5.1, waiting enouth time for complete work, and verified that internal variables were good.
I cant fix this bug, and I need help too!!!
Thanks in advance.

GC's picture

Hello, good news, (for me but may be for others)
I found that TKBO.lib uses the Handle_BOP_HistoryCollector but, I did not try to add TKBO.lib with the files used in my project. Searching on the forum ALL occurences of 2001 made me find asomeone who had the same problem, and got the solution (including TKBO.lib in the project), so, if you use a binary file viewer (I use TOTAL COMMANDER witch is very easy to use (shareware, but good value for the money) you can seach the lib file that contains the unresolved function, so you can include it in your project, and I think it will work.
Regards

haocb's picture

I have the same problem.
Thanks for your advice.

mweiler's picture

Having the same problem when including BRepAlgoAPI_Fuse.hxx