2009年4月29日 星期三

error LNK2019的解決一例

在編譯W32的DLL的程式時,意外的出現error LNK2019: 無法解析的外部符號 "public: int __thiscall WavFile::FreeWaveData(struct WaveDataArray *)這一類的錯誤訊息,百般檢查程式的確是沒有錯誤的地方啊~~後來去爬了一下,有人提到VC++對於template的編輯支援的問題,由此template的程式必須要編譯二次,VC++似乎沒有支援,於是我將原本來.CPP檔中的程式主體搬到.H檔案中,放至宣告後面,這個問題就解決了。

1 則留言:

ednitagach 提到...

king casino game - Macmerit
king casino game by RealTime Gaming. Play over 1 메리트카지노 billion games today (Updated 토토사이트 daily). a unique casino experience, The casino's latest games, King Casino, include the first