星期六, 十月 29, 2005

Solved the Redifinition problem !

general c/c++ link Result
Shared DLL DebugMultithread DLL - OK
Not MFC DebugMultithread DLL - error LNK2001
Shared DLL Singlethread* - OK
Shared DLL DebugMultithread - fatal error C1189
Shared DLL Singlethread* - fatal error C1189
Shared DLL Multithread DLL reset
Shared DLL Multithread DLL - warning LNK4098
Shared DLL Multithread DLL reset warning LNK4098 这时候仍然没有默认lib
Shared DLL DebugMultithread DLL reset OK

原先是DiskSerial.h的Redifinition。因为Setting的问题导致了调试一直不成功。以下是成功后设置Setting的过程;从中很难看出到底是哪个设置影响了Redifinition的解决。
There was a "error C2011: '_DISK_SERIAL' : 'struct' type redefinition;". Finally, I found it is because wrong Setting. But look at the table above, I don't know which step really infect the result.

My Post in CSDN
在CSDN上发的原帖
http://community.csdn.net/Expert/TopicView3.asp?id=4359135

在blog和csdn上搜到"DebugMultithread"in C/C++ and "DiskSerial.lib"in link的方案,但是不是每次都起作用。
In someone's blogs, they said "DebugMultithread"in C/C++ and "DiskSerial.lib"in link, but it works in the first time. When I try again with the copy of the original .dsw, it doesn't work as well as the first time. :(
有空看看setting的说明,在google和csdn都没有搜到。谁看到哪里有的请顺便告诉我吧,最近真的好忙,没法去图书馆了:(
I hope to see the instruction about "Setting", I can't find in Google and CSDN. Anyone can tell me? I'm really really too busy these days to look for the books in library:(
P.S. Thank XCM to spend time giving suggestion.感谢长明给的建议。

没有评论: