How to resolve LNK2001 error (ver: VC ++ 8.0 and .net 2005)
-
I have upgraded a project written in VC++ 7.1 version using the .net 2005 wizard. After fixing few code related issues, I have got the following errors while building error LNK2001: unresolved external symbol DllCanUnloadNow error LNK2001: unresolved external symbol DllGetClassObject I have declared this in the .def file as DllCanUnloadNow PRIVATE DllGetClassObject PRIVATE I would really appreciate for showing me the right way to resolve this please. Thanks in advance.
SoftwareDeveloper(.NET)
-
I have upgraded a project written in VC++ 7.1 version using the .net 2005 wizard. After fixing few code related issues, I have got the following errors while building error LNK2001: unresolved external symbol DllCanUnloadNow error LNK2001: unresolved external symbol DllGetClassObject I have declared this in the .def file as DllCanUnloadNow PRIVATE DllGetClassObject PRIVATE I would really appreciate for showing me the right way to resolve this please. Thanks in advance.
SoftwareDeveloper(.NET)
-
did you switch a dll from being a com DLL to a managed DLL?
a programmer traped in a thugs body
Few libraries actually was written in vc 6 and using those with that..but it has been upgraded to vc 7 .. Thanks
SoftwareDeveloper(.NET)
-
Few libraries actually was written in vc 6 and using those with that..but it has been upgraded to vc 7 .. Thanks
SoftwareDeveloper(.NET)
Finaly I could resolve the issue. I have done the following steps to resolve the issue. 1) Have set "Multi-Threaded Debug(/MTD" in all the projects under workspace. this thing was correct already but mentioning here for future reference. 2) In the Resources-->Preprocessor Definitions , I have set "_DEBUG,_MT,DLL". I believe this part , corrected the issue. previously it was having only "_DEBUG". Thanks,.. :-D
SoftwareDeveloper(.NET)