[問題] dev-c上run CxImage

看板C_and_CPP作者 (鍛翼)時間11年前 (2013/01/15 19:29), 編輯推噓0(006)
留言6則, 2人參與, 最新討論串1/1
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) Dev-C++ 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) CxImage 問題(Question): 想要學習怎麼將raw檔轉成TIFF檔,看見網路上有人使用CxImage 也找到有人寫的code,不過卻無法run 餵入的資料(Input): test.bmp 預期的正確結果(Expected Output): test.tif 錯誤結果(Wrong Output): [Linker error] undefined reference to `CxImage::CxImage(unsigned long)' [Linker error] undefined reference to `CxImage::Load(char const*, unsigned long)' [Linker error] undefined reference to `CxImage::Load(char const*, unsigned long)' [Linker error] undefined reference to `CxImage::Load(char const*, unsigned long)' [Linker error] undefined reference to `CxImage::DestroyFrames()' ld returned 1 exit status 程式碼(Code):(請善用置底文網頁, 記得排版) http://ideone.com/cuM8mF 補充說明(Supplement): C語言還是新手,在圖像處理上更是一竅不通 請各位前輩不吝指教,衷心的感謝 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 111.251.163.145

01/15 22:00, , 1F
這些訊息表示 link 的時候找不到函數的實體。
01/15 22:00, 1F

01/15 22:02, , 2F
以你的情況可能是沒去 link 到 cximage.lib 這個檔案。
01/15 22:02, 2F

01/15 23:36, , 3F
請問我該怎麼做比較妥當,謝謝
01/15 23:36, 3F

01/15 23:43, , 4F
你應該先清楚你使用的 IDE 如何加入 libraries
01/15 23:43, 4F

01/15 23:43, , 5F
以及如何設定 libraries 和 headers 的路徑
01/15 23:43, 5F

01/15 23:45, , 6F
然後去 CxImage 按照指示一步一步建置專案。
01/15 23:45, 6F
文章代碼(AID): #1GzJsguy (C_and_CPP)