[問題] 關於gmake Makefile問題
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
Linux gmake
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
libxml
問題(Question):
小弟最近剛接觸C/C++語言 最近在修改程式時
需要抓取XML的資料 參考網路上的做法 include libxml
但是在complite 時 卻出現 include 的.h 檔裡面有error
嘗試過 在Makefile 裡面 加上-I /usr/include/libxml
但是乎沒有用
後來發現網路上 大部分都是使用 g++ or gcc 配合.c 檔案
但我使用的卻是 gmake 配合.cc 檔案
請問一下這是問題的點嗎??
錯誤結果(Wrong Output):
/usr/include/libxml2/libxml/tree.h:713: error: expected constructor, destructor, or type conversion
.
.
程式碼(Code):(請善用置底文網頁, 記得排版)
#include</usr/include/libxml2/libxml/tree.h>
補充說明(Supplement):
第一次發文 如有錯誤 虛心受教
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 218.211.253.68
→
03/12 14:37, , 1F
03/12 14:37, 1F
→
03/12 14:38, , 2F
03/12 14:38, 2F
→
03/12 14:41, , 3F
03/12 14:41, 3F
→
03/12 14:54, , 4F
03/12 14:54, 4F
→
03/12 14:56, , 5F
03/12 14:56, 5F
→
03/12 14:57, , 6F
03/12 14:57, 6F
→
03/12 15:12, , 7F
03/12 15:12, 7F
→
03/12 15:17, , 8F
03/12 15:17, 8F
→
03/12 16:13, , 9F
03/12 16:13, 9F
→
03/12 16:14, , 10F
03/12 16:14, 10F
→
03/12 16:15, , 11F
03/12 16:15, 11F
→
03/12 16:16, , 12F
03/12 16:16, 12F
推
03/12 16:29, , 13F
03/12 16:29, 13F
→
03/12 16:29, , 14F
03/12 16:29, 14F
→
03/12 17:10, , 15F
03/12 17:10, 15F
→
03/13 21:56, , 16F
03/13 21:56, 16F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章