Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Debug compile可過, Release卻不行?(VC++ 6.0)

0 views
Skip to first unread message

John C.Y. Lee

unread,
Dec 2, 2001, 9:38:20 PM12/2/01
to
五個檔案組成的project:
a.h, a.cpp,
b.h, b.cpp,
main.cpp
main.cpp 中包含:
#include "a.h"
#include "b.h"
void main() { }
用debug compile可以過, 正常執行, 但換成release的話, link時main.obj會有
Linker Tools Error LNK2001: unresolved external symbol "symbol"
這樣的error出現. 若是將main.cpp內容原封放到 a.cpp or b.cpp 中的話,
一切正常. 請教這種問題成因為何? 如何避免?


0 new messages