看板 LinuxDev 關於我們 聯絡資訊
我在程式寫 unsigned char *idct_image = new unsigned char [1024]; 但是用gcc compiler時,他說: 'new' undeclared here(not in a function) parse error befor 'unsigned' 請問我有少寫什麼嗎?@@ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.120.108.99
dozer:new應該是c++語法 用g++代替gcc編譯試試 01/05 23:29
elpam:檔名改用cpp or cxx 01/06 00:08