|
-
July 2nd, 2012, 05:19 PM
#1
A strange problem related to def file.
I got a linker error "error LNK2001: unresolved external symbol "public: virtual int __thiscall XXXClass::XXXXFunction(class CWnd *,struct IMyStruct * const)" (?XXXXFunction@XXXClass@@UAEHPAVCWnd@@QAUIMyStruct@@@Z)"
Recently I modified XXXXFunction and added one more parameter. Now XXXXFunction is defined as
Code:
XXXXFunction(CWnd *,IMyStruct * const, int)
I checked both header file and source file and I am sure the definition of XXXXFunction has already updated in both header file and source file. On the other hand, I use def file in my project. The problem is that XXXXFunction is still defined as
Code:
?XXXXFunction@XXXClass@@UAEHPAVCWnd@@QAUIMyStruct@@@Z
Obviously the definition of XXXXFunction in def file doesn't match with the one in header file and source file. But since I got a linker error, so I couldn't get a dll. As the result, I don't know how to modify def file in order to match header file and source file. Any idea how to fix this problem? Thanks for your inputs.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|