[問題] c++的include和add project
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
BCB6.0
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
問題(Question):
手邊有個AES加解密的.h和.cpp檔
要在在主程式中使用AES中的函式
原先直接在主程式中include .h檔編譯會出現[Linker Error] Unresolved external
後來直接在add project加入.cpp並 mark掉原先主程式中include .h就成功了
請問是什麼原因?
餵入的資料(Input):
預期的正確結果(Expected Output):
錯誤結果(Wrong Output):
程式碼(Code):(請善用置底文網頁, 記得排版)
補充說明(Supplement):
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.124.10.146
→
08/01 23:41, , 1F
08/01 23:41, 1F
推
08/02 23:33, , 2F
08/02 23:33, 2F
→
08/02 23:34, , 3F
08/02 23:34, 3F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章