1
我正在構建一個簡單的調整,僅包含Springboard.h
頭文件。Cydia調整開發 - 頭文件編譯錯誤
這是編譯錯誤,我得到當建築:
Preprocessing Tweak.xm...
Compiling Tweak.xm...
In file included from Tweak.xm:1:
/opt/theos/include/SpringBoard/SpringBoard.h:22: error: ISO C++ forbids declaration of ‘GSEventRef’ with no type
/opt/theos/include/SpringBoard/SpringBoard.h:22: error: expected `;' before ‘_headsetDownEvent’
/opt/theos/include/SpringBoard/SpringBoard.h:56: error: ISO C++ forbids declaration of ‘opaque_pthread_t’ with no type
/opt/theos/include/SpringBoard/SpringBoard.h:56: error: expected `;' before ‘*’ token
/opt/theos/include/SpringBoard/SpringBoard.h:64: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:64: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:64: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:102: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:102: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:102: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:103: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:103: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:103: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:107: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:107: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:107: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:108: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:108: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:108: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:110: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:110: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:110: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:122: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:122: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:122: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:130: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:130: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:130: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:131: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:131: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:131: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:132: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:132: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:132: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:133: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:133: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:133: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:145: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:145: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:145: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:147: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:147: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:147: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:148: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:148: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:148: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:149: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:149: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:149: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:150: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:150: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:150: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:151: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:151: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:151: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:152: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:152: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:152: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:153: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:153: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:153: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:158: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:158: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:158: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:165: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:165: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:165: error: expected `;' before ‘)’ token
/opt/theos/include/SpringBoard/SpringBoard.h:202: error: expected type-specifier before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:202: error: expected `)' before ‘GSEventRef’
/opt/theos/include/SpringBoard/SpringBoard.h:202: error: expected `;' before ‘)’ token
Tweak.xm: In function ‘void _logosLocalInit()’:
Tweak.xm:15: error: ‘MSHookMessageEx’ was not declared in this scope
make[2]: *** [obj/Tweak.xm.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [Peel.all.tweak.variables] Error 2
有誰知道爲什麼它給我編譯器,我的頭進口與錯誤使西奧斯當我得到這個?
你使用什麼標題?有時傾倒標頭可能會非常挑剔。 – Zigsaz 2012-03-15 14:45:57
我正在使用Ryan Petrich的傾倒標題。 – 2012-03-15 14:54:40