2012-03-15 17 views
1

私は、Springboard.hヘッダーのみが含まれた簡単な調整を行っています。 THEOSを作るとき、私はこれを取得:Cydia Tweak Development - ヘッダーコンパイルエラー

これは、建物ときに私が取得コンパイルエラーである:それは私に私輸入ヘッダとコンパイルエラーを与えている理由は、誰もが

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 

を知っていますか?

+0

どのヘッダーを使用していますか?ダンプされたヘッダーは、時にはかなり厄介なことがあります。 – Zigsaz

+0

私はRyan Petrichのダンプされたヘッダーを使用しています。 –

答えて

0

使用しているヘッダーの問題は、GraphicsServicesのような他のプライベートフレームワークが含まれていることです。私はRyan Petrichが開発を微調整するのに使用することを意図しているとは思っていません。代わりにこれらを試してみるか、class-dumpを使って自分でダンプしてください。 https://github.com/Fr0stDev/SpringBoard-iOS5-Headers

Good Luck!