寫好一個程式,怎麼在mfc匯入

Home Home
引用 | 編輯 freegood
2007-02-09 16:44
樓主
推文 x0
假設我已經寫好一個程式了
我這個程式有很多class,因為是一台機器的API
現 ..

訪客只能看到部份內容,免費 加入會員



獻花 x0
引用 | 編輯 codeboy
2007-02-09 22:54
1樓
  
把錯誤貼上來吧..才有辦法看~ 表情

獻花 x0
引用 | 編輯 王天才
2007-02-10 20:56
2樓
  
對呀貼上來看看吧!不然怎麼知道哪裡有錯呢

獻花 x0
引用 | 編輯 freegood
2007-02-12 16:41
3樓
  
以下這些是錯誤,好怪,看不懂
birdView.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) int __cdecl GetSensorConfiguration(unsigned short,struct tagSENSOR_CONFIGURATION *)" (__imp_?GetSensorConfiguration@@YAHGPAUtagSENSOR_CONFIGURATION@@@Z)

birdView.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) int __cdecl GetTransmitterConfiguration(unsigned short,struct tagTRANSMITTER_CONFIGURATION *)" (__imp_?GetTransmitterConfiguration@@YAHGPAUtagTRANSMITTER_CONFIGURATION@@
@Z)

birdView.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) int __cdecl GetBIRDSystemConfiguration(struct tagSYSTEM_CONFIGURATION *)" (__imp_?GetBIRDSystemConfiguration@@YAHPAUtagSYSTEM_CONFIGURATION@@@Z)

birdView.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) int __cdecl InitializeBIRDSystem(void)" (__imp_?InitializeBIRDSystem@@YAHXZ)

獻花 x0
引用 | 編輯 fredxxx123
2007-02-13 09:35
4樓
  
傳說中最難搞的「LNK2001:無法解晰的外部符號」耶~
看來這個要DEBUG有困難度了 表情

獻花 x0
引用 | 編輯 codeboy
2007-02-13 10:40
5樓
  
我猜想大概是你少放了lib檔了...連結器找不到對應的部份

獻花 x0
引用 | 編輯 freegood
2007-02-17 14:22
6樓
  
感謝大大,真的少放了lib,哈

獻花 x0