ROM Hack Troubles building NTR plugin.

ThatBenderGuy

Well-Known Member
OP
Member
Joined
Dec 16, 2013
Messages
150
Trophies
0
Age
31
XP
348
Country
United States
I am currently trying to convert some Gateshark codes into a NTR plugin for MHXX because i'm on O3DS and using Mode3 so I need to get the file size < 300kb. The problem is I'm trying to export the plugin with just a single cheat but I keep getting a lot of errors for a lot of stuff that just seems like the compiler not understanding how to compile C. For instance here is the errors:
Code:
2017-04-16 05:18:47 : Compiling C files
.\Sources\cheats.c: In function 'infstam':
.\Sources\cheats.c:5:1: error: parameter 'builder_name' is initialized
 char *builder_name = "name";
 ^
.\Sources\cheats.c:7:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
 void infstam(void) {
                    ^
In file included from .\Sources\cheats.c:1:0:
.\Sources\cheats.h:6:6: error: old-style parameter declarations in prototyped function definition
 void infstam(void)
      ^
.\Sources\cheats.c:9:1: error: expected '{' at end of input
 }
 ^
In file included from .\Sources\menu.c:2:0:
.\Sources\notes.h: In function 'infstam':
.\Sources\notes.h:4:27: error: storage class specified for parameter 'notes'
 static const char * const notes[] =
                           ^
.\Sources\notes.h:4:1: error: parameter 'notes' is initialized
 static const char * const notes[] =
 ^
.\Sources\notes.h:6:2: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
  "Combat codes",
  ^
.\Sources\notes.h:6:2: note: (near initialization for 'notes')
.\Sources\notes.h:7:2: warning: excess elements in scalar initializer
  "Refill your heart.\n\nPress the upper side of the touchscreen to execute this code.",
  ^
.\Sources\notes.h:7:2: note: (near initialization for 'notes')
.\Sources\notes.h:8:2: warning: excess elements in scalar initializer
  "Refill your magic.\n\nPress the lower side of the touchscreen to execute this code.",
  ^
.\Sources\notes.h:8:2: note: (near initialization for 'notes')
.\Sources\notes.h:9:2: warning: excess elements in scalar initializer
  "No more spin attack charge time with this code !",
  ^
.\Sources\notes.h:9:2: note: (near initialization for 'notes')
.\Sources\notes.h:10:2: warning: excess elements in scalar initializer
  "Your sword will shine.\n\nThe game can be laggy",
  ^
.\Sources\notes.h:10:2: note: (near initialization for 'notes')
.\Sources\notes.h:11:2: warning: excess elements in scalar initializer
  "Put your sticks in fire",
  ^
.\Sources\notes.h:11:2: note: (near initialization for 'notes')
.\Sources\notes.h:12:2: warning: excess elements in scalar initializer
  "Moonjump:\n\nPress A to jump.\n\nYou can easily toogle this cheat in-game with DPAD Right.",
  ^
.\Sources\notes.h:12:2: note: (near initialization for 'notes')
.\Sources\notes.h:13:2: warning: excess elements in scalar initializer
  "Move fast:\n\nPress X with any Stick direction to move fastly.\n\nYou can easily toogle this cheat in-game with DPAD Left.",
  ^
.\Sources\notes.h:13:2: note: (near initialization for 'notes')
.\Sources\notes.h:14:2: warning: excess elements in scalar initializer
  "Endless carrots to bait your horse !",
  ^
.\Sources\notes.h:14:2: note: (near initialization for 'notes')
.\Sources\notes.h:15:2: warning: excess elements in scalar initializer
  "New and untested !!!",
  ^
.\Sources\notes.h:15:2: note: (near initialization for 'notes')
.\Sources\notes.h:16:2: warning: excess elements in scalar initializer
  "Moonjump:\n\nPress X + A to jump.\n\nNew and untested !!!",
  ^
.\Sources\notes.h:16:2: note: (near initialization for 'notes')
.\Sources\notes.h:17:2: warning: excess elements in scalar initializer
  "New and untested !!!",
  ^
.\Sources\notes.h:17:2: note: (near initialization for 'notes')
.\Sources\notes.h:18:2: warning: excess elements in scalar initializer
  "New and untested !!!",
  ^
.\Sources\notes.h:18:2: note: (near initialization for 'notes')
.\Sources\notes.h:19:2: warning: excess elements in scalar initializer
  "Dungeon",
  ^
.\Sources\notes.h:19:2: note: (near initialization for 'notes')
.\Sources\notes.h:20:2: warning: excess elements in scalar initializer
  "New and untested !!!",
  ^
.\Sources\notes.h:20:2: note: (near initialization for 'notes')
.\Sources\notes.h:21:2: warning: excess elements in scalar initializer
  "New and untested !!!",
  ^
.\Sources\notes.h:21:2: note: (near initialization for 'notes')
.\Sources\notes.h:22:2: warning: excess elements in scalar initializer
  "Inventory codes",
  ^
.\Sources\notes.h:22:2: note: (near initialization for 'notes')
.\Sources\notes.h:23:2: warning: excess elements in scalar initializer
  "Misc.",
  ^
.\Sources\notes.h:23:2: note: (near initialization for 'notes')
.\Sources\notes.h:24:2: warning: excess elements in scalar initializer
  "No more out of ammo with this infinite arrows code !",
  ^
.\Sources\notes.h:24:2: note: (near initialization for 'notes')
.\Sources\notes.h:25:2: warning: excess elements in scalar initializer
  "Love the deku nuts ?\n\nTake some more then !",
  ^
.\Sources\notes.h:25:2: note: (near initialization for 'notes')
.\Sources\notes.h:26:2: warning: excess elements in scalar initializer
  "Me too, when I was 5yo I loved having a stick in my hand to discover the world",
  ^
.\Sources\notes.h:26:2: note: (near initialization for 'notes')
.\Sources\notes.h:27:2: warning: excess elements in scalar initializer
  "Make this building explode !",
  ^
.\Sources\notes.h:27:2: note: (near initialization for 'notes')
.\Sources\notes.h:28:2: warning: excess elements in scalar initializer
  "What the hell is that design ?\n\nIt's war outside !",
  ^
.\Sources\notes.h:28:2: note: (near initialization for 'notes')
.\Sources\notes.h:29:2: warning: excess elements in scalar initializer
  "Take this in your face !!",
  ^
.\Sources\notes.h:29:2: note: (near initialization for 'notes')
.\Sources\notes.h:30:2: warning: excess elements in scalar initializer
  "I don't like spider man !",
  ^
.\Sources\notes.h:30:2: note: (near initialization for 'notes')
.\Sources\notes.h:31:2: warning: excess elements in scalar initializer
  "Yeah !!!\n\nMake me rich !",
  ^
.\Sources\notes.h:31:2: note: (near initialization for 'notes')
.\Sources\notes.h:32:2: warning: excess elements in scalar initializer
  "New and untested !!!",
  ^
.\Sources\notes.h:32:2: note: (near initialization for 'notes')
.\Sources\notes.h:33:2: warning: excess elements in scalar initializer
  "New and untested !!!",
  ^
.\Sources\notes.h:33:2: note: (near initialization for 'notes')
.\Sources\notes.h:34:2: warning: excess elements in scalar initializer
  "New and untested !!!",
  ^
.\Sources\notes.h:34:2: note: (near initialization for 'notes')
.\Sources\notes.h:35:2: warning: excess elements in scalar initializer
  "Environment",
  ^
.\Sources\notes.h:35:2: note: (near initialization for 'notes')
.\Sources\notes.h:36:2: warning: excess elements in scalar initializer
  "Time codes",
  ^
.\Sources\notes.h:36:2: note: (near initialization for 'notes')
.\Sources\notes.h:37:2: warning: excess elements in scalar initializer
  "I wanna sleep some more !",
  ^
.\Sources\notes.h:37:2: note: (near initialization for 'notes')
.\Sources\notes.h:38:2: warning: excess elements in scalar initializer
  "It's to hot to work !",
  ^
.\Sources\notes.h:38:2: note: (near initialization for 'notes')
.\Sources\notes.h:39:2: warning: excess elements in scalar initializer
  "Wanna have a beer ?",
  ^
.\Sources\notes.h:39:2: note: (near initialization for 'notes')
.\Sources\notes.h:40:2: warning: excess elements in scalar initializer
  "I don't wanna sleep...\n\nAlone ! :p",
  ^
.\Sources\notes.h:40:2: note: (near initialization for 'notes')
.\Sources\notes.h:41:2: warning: excess elements in scalar initializer
  "New and untested !!!",
  ^
.\Sources\notes.h:41:2: note: (near initialization for 'notes')
.\Sources\notes.h:42:2: warning: excess elements in scalar initializer
  "For the lazy guys",
  ^
.\Sources\notes.h:42:2: note: (near initialization for 'notes')
.\Sources\notes.h:43:2: warning: excess elements in scalar initializer
  "Combat codes",
  ^
.\Sources\notes.h:43:2: note: (near initialization for 'notes')
.\Sources\notes.h:44:2: warning: excess elements in scalar initializer
  "Be a wizard",
  ^
.\Sources\notes.h:44:2: note: (near initialization for 'notes')
.\Sources\notes.h:45:2: warning: excess elements in scalar initializer
  "Be a great wizard",
  ^
.\Sources\notes.h:45:2: note: (near initialization for 'notes')
.\Sources\notes.h:46:2: warning: excess elements in scalar initializer
  "Be a cat and get your 9 lifes",
  ^
.\Sources\notes.h:46:2: note: (near initialization for 'notes')
.\Sources\notes.h:47:2: warning: excess elements in scalar initializer
  "Don't search arounf the world for what you can have in 5 seconds",
  ^
.\Sources\notes.h:47:2: note: (near initialization for 'notes')
.\Sources\notes.h:48:2: warning: excess elements in scalar initializer
  "Be a really tough guy",
  ^
.\Sources\notes.h:48:2: note: (near initialization for 'notes')
.\Sources\notes.h:49:2: warning: excess elements in scalar initializer
  "Equipment codes",
  ^
.\Sources\notes.h:49:2: note: (near initialization for 'notes')
.\Sources\notes.h:50:2: warning: excess elements in scalar initializer
  "Get you kokiri's sword",
  ^
.\Sources\notes.h:50:2: note: (near initialization for 'notes')
.\Sources\notes.h:51:2: warning: excess elements in scalar initializer
  "Be a legend !",
  ^
.\Sources\notes.h:51:2: note: (near initialization for 'notes')
.\Sources\notes.h:52:2: warning: excess elements in scalar initializer
  "Want a broken sword ?",
  ^
.\Sources\notes.h:52:2: note: (near initialization for 'notes')
.\Sources\notes.h:53:2: warning: excess elements in scalar initializer
  "Get you burnable shield",
  ^
.\Sources\notes.h:53:2: note: (near initialization for 'notes')
.\Sources\notes.h:54:2: warning: excess elements in scalar initializer
  "For the love of Hyrule !!",
  ^
.\Sources\notes.h:54:2: note: (near initialization for 'notes')
.\Sources\notes.h:55:2: warning: excess elements in scalar initializer
  "Whoaaa !!\n\nWhat a shiny shield you got !",
  ^
.\Sources\notes.h:55:2: note: (near initialization for 'notes')
.\Sources\notes.h:56:2: warning: excess elements in scalar initializer
  "Be a lutin with this cheap suit\n\n#Tingle",
  ^
.\Sources\notes.h:56:2: note: (near initialization for 'notes')
.\Sources\notes.h:57:2: warning: excess elements in scalar initializer
  "Be a demineur with this fire proof suit !",
  ^
.\Sources\notes.h:57:2: note: (near initialization for 'notes')
.\Sources\notes.h:58:2: warning: excess elements in scalar initializer
  "Always wanted to be a fishman ?\n\n Be my guest !",
  ^
.\Sources\notes.h:58:2: note: (near initialization for 'notes')
.\Sources\notes.h:59:2: warning: excess elements in scalar initializer
  "Unlock all",
  ^
.\Sources\notes.h:59:2: note: (near initialization for 'notes')
.\Sources\notes.h:60:2: warning: excess elements in scalar initializer
  "Get 2,5 swords for the price of 1 !",
  ^
.\Sources\notes.h:60:2: note: (near initialization for 'notes')
.\Sources\notes.h:61:2: warning: excess elements in scalar initializer
  "Get 3  shields for the price of 1",
  ^
.\Sources\notes.h:61:2: note: (near initialization for 'notes')
.\Sources\notes.h:62:2: warning: excess elements in scalar initializer
  "Need some clothes ?",
  ^
.\Sources\notes.h:62:2: note: (near initialization for 'notes')
.\Sources\notes.h:63:2: warning: excess elements in scalar initializer
  "Be god on earth and go defeat the evil Ganondorf",
  ^
.\Sources\notes.h:63:2: note: (near initialization for 'notes')
.\Sources\notes.h:64:2: warning: excess elements in scalar initializer
  "Story codes",
  ^
.\Sources\notes.h:64:2: note: (near initialization for 'notes')
.\Sources\notes.h:65:2: warning: excess elements in scalar initializer
  "Unlock all stones",
  ^
.\Sources\notes.h:65:2: note: (near initialization for 'notes')
.\Sources\notes.h:66:2: warning: excess elements in scalar initializer
  "Unlock all medallions",
  ^
.\Sources\notes.h:66:2: note: (near initialization for 'notes')
.\Sources\notes.h:67:2: warning: excess elements in scalar initializer
  "Fun codes",
  ^
.\Sources\notes.h:67:2: note: (near initialization for 'notes')
.\Sources\notes.h:68:2: warning: excess elements in scalar initializer
  "Link's size",
  ^
.\Sources\notes.h:68:2: note: (near initialization for 'notes')
.\Sources\notes.h:69:2: warning: excess elements in scalar initializer
  "Be a giant which crush everything under is feet",
  ^
.\Sources\notes.h:69:2: note: (near initialization for 'notes')
.\Sources\notes.h:70:2: warning: excess elements in scalar initializer
  "Tired of being a laughable man ?",
  ^
.\Sources\notes.h:70:2: note: (near initialization for 'notes')
.\Sources\notes.h:71:2: warning: excess elements in scalar initializer
  "Wanna see what's under the girl's skirt ?",
  ^
.\Sources\notes.h:71:2: note: (near initialization for 'notes')
.\Sources\notes.h:72:2: warning: excess elements in scalar initializer
  "Jealous of mario ?",
  ^
.\Sources\notes.h:72:2: note: (near initialization for 'notes')
.\Sources\notes.h:73:2: warning: excess elements in scalar initializer
  "New and untested !!!",
  ^
.\Sources\notes.h:73:2: note: (near initialization for 'notes')
.\Sources\notes.h:74:2: warning: excess elements in scalar initializer
  "New and untested !!!",
  ^
.\Sources\notes.h:74:2: note: (near initialization for 'notes')
In file included from c:\devkitpro\devkitarm\arm-none-eabi\include\sys\reent.h:14:0,
                 from c:\devkitpro\devkitarm\arm-none-eabi\include\string.h:11,
                 from .\Sources\menu.c:3:
c:\devkitpro\devkitarm\lib\gcc\arm-none-eabi\5.3.0\include\stddef.h:149:26: error: storage class specified for parameter 'ptrdiff_t'
 typedef __PTRDIFF_TYPE__ ptrdiff_t;
                          ^
c:\devkitpro\devkitarm\lib\gcc\arm-none-eabi\5.3.0\include\stddef.h:216:23: error: storage class specified for parameter 'size_t'
 typedef __SIZE_TYPE__ size_t;
                       ^
c:\devkitpro\devkitarm\lib\gcc\arm-none-eabi\5.3.0\include\stddef.h:328:24: error: storage class specified for parameter 'wchar_t'
 typedef __WCHAR_TYPE__ wchar_t;
                        ^
c:\devkitpro\devkitarm\lib\gcc\arm-none-eabi\5.3.0\include\stddef.h:429:3: error: storage class specified for parameter 'max_align_t'
 } max_align_t;
   ^
In file included from c:\devkitpro\devkitarm\arm-none-eabi\include\sys\_types.h:13:0,
                 from c:\devkitpro\devkitarm\arm-none-eabi\include\sys\reent.h:15,
                 from c:\devkitpro\devkitarm\arm-none-eabi\include\string.h:11,
                 from .\Sources\menu.c:3:
c:\devkitpro\devkitarm\arm-none-eabi\include\sys\lock.h:7:17: error: storage class specified for parameter '_LOCK_T'
 typedef int32_t _LOCK_T;
                 ^
c:\devkitpro\devkitarm\arm-none-eabi\include\sys\lock.h:10:2: error: expected specifier-qualifier-list before '_LOCK_T'
  _LOCK_T lock;
  ^
c:\devkitpro\devkitarm\arm-none-eabi\include\sys\lock.h:15:25: error: storage class specified for parameter '_LOCK_RECURSIVE_T'
 typedef struct __lock_t _LOCK_RECURSIVE_T;
                         ^
c:\devkitpro\devkitarm\arm-none-eabi\include\sys\lock.h:17:30: error: expected declaration specifiers or '...' before '_LOCK_T'
 extern void __libc_lock_init(_LOCK_T *lock);
                              ^
c:\devkitpro\devkitarm\arm-none-eabi\include\sys\lock.h:18:40: error: expected declaration specifiers or '...' before '_LOCK_RECURSIVE_T'
 extern void __libc_lock_init_recursive(_LOCK_RECURSIVE_T *lock);
                                        ^
c:\devkitpro\devkitarm\arm-none-eabi\include\sys\lock.h:19:31: error: expected declaration specifiers or '...' before '_LOCK_T'
 extern void __libc_lock_close(_LOCK_T *lock);
                               ^
c:\devkitpro\devkitarm\arm-none-eabi\include\sys\lock.h:20:41: error: expected declaration specifiers or '...' before '_LOCK_RECURSIVE_T'
 extern void __libc_lock_close_recursive(_LOCK_RECURSIVE_T *lock);
                                         ^
c:\devkitpro\devkitarm\arm-none-eabi\include\sys\lock.h:21:33: error: expected declaration specifiers or '...' before '_LOCK_T'
 extern void __libc_lock_acquire(_LOCK_T *lock);
                                 ^
c:\devkitpro\devkitarm\arm-none-eabi\include\sys\lock.h:22:43: error: expected declaration specifiers or '...' before '_LOCK_RECURSIVE_T'
 extern void __libc_lock_acquire_recursive(_LOCK_RECURSIVE_T *lock);
                                           ^
c:\devkitpro\devkitarm\arm-none-eabi\include\sys\lock.h:23:33: error: expected declaration specifiers or '...' before '_LOCK_T'
 extern void __libc_lock_release(_LOCK_T *lock);
                                 ^
c:\devkitpro\devkitarm\arm-none-eabi\include\sys\lock.h:24:43: error: expected declaration specifiers or '...' before '_LOCK_RECURSIVE_T'
 extern void __libc_lock_release_recursive(_LOCK_RECURSIVE_T *lock);
                                           ^
c:\devkitpro\devkitarm\arm-none-eabi\include\sys\lock.h:27:36: error: expected declaration specifiers or '...' before '_LOCK_T'
 extern int __libc_lock_try_acquire(_LOCK_T *lock);
                                    ^
c:\devkitpro\devkitarm\arm-none-eabi\include\sys\lock.h:28:46: error: expected declaration specifiers or '...' before '_LOCK_RECURSIVE_T'
 extern int __libc_lock_try_acquire_recursive(_LOCK_RECURSIVE_T *lock);
                                              ^
In file included from c:\devkitpro\devkitarm\arm-none-eabi\include\sys\reent.h:15:0,
                 from c:\devkitpro\devkitarm\arm-none-eabi\include\string.h:11,
                 from .\Sources\menu.c:3:
c:\devkitpro\devkitarm\arm-none-eabi\include\sys\_types.h:16:14: error: storage class specified for parameter '_off_t'
 typedef long _off_t;
              ^
c:\devkitpro\devkitarm\arm-none-eabi\include\sys\_types.h:20:13: error: storage class specified for parameter '__dev_t'
 typedef int __dev_t;
             ^
c:\devkitpro\devkitarm\arm-none-eabi\include\sys\_types.h:24:24: error: storage class specified for parameter '__uid_t'
 typedef unsigned short __uid_t;
                        ^
c:\devkitpro\devkitarm\arm-none-eabi\include\sys\_types.h:27:24: error: storage class specified for parameter '__gid_t'
 typedef unsigned short __gid_t;
                        ^
c:\devkitpro\devkitarm\arm-none-eabi\include\sys\_types.h:31:1: error: expected declaration specifiers before '__extension__'
 __extension__ typedef long long _off64_t;
 ^
c:\devkitpro\devkitarm\arm-none-eabi\include\sys\_types.h:39:14: error: storage class specified for parameter '_fpos_t'
 typedef long _fpos_t;  /* XXX must match off_t in <sys/types.h> */
              ^
c:\devkitpro\devkitarm\arm-none-eabi\include\sys\_types.h:55:23: error: storage class specified for parameter '_ssize_t'
 typedef __SIZE_TYPE__ _ssize_t;
                       ^
In file included from c:\devkitpro\devkitarm\arm-none-eabi\include\sys\_types.h:67:0,
                 from c:\devkitpro\devkitarm\arm-none-eabi\include\sys\reent.h:15,
                 from c:\devkitpro\devkitarm\arm-none-eabi\include\string.h:11,
                 from .\Sources\menu.c:3:
c:\devkitpro\devkitarm\lib\gcc\arm-none-eabi\5.3.0\include\stddef.h:357:23: error: storage class specified for parameter 'wint_t'
 typedef __WINT_TYPE__ wint_t;
                       ^
In file included from c:\devkitpro\devkitarm\arm-none-eabi\include\sys\reent.h:15:0,
                 from c:\devkitpro\devkitarm\arm-none-eabi\include\string.h:11,
                 from .\Sources\menu.c:3:
c:\devkitpro\devkitarm\arm-none-eabi\include\sys\_types.h:76:5: error: expected specifier-qualifier-list before 'wint_t'
     wint_t __wch;
     ^
c:\devkitpro\devkitarm\arm-none-eabi\include\sys\_types.h:79:3: error: storage class specified for parameter '_mbstate_t'
 } _mbstate_t;
   ^
c:\devkitpro\devkitarm\arm-none-eabi\include\sys\_types.h:83:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_flock_t'
 typedef _LOCK_RECURSIVE_T _flock_t;
                           ^
c:\devkitpro\devkitarm\arm-none-eabi\include\sys\_types.h:88:15: error: storage class specified for parameter '_iconv_t'
 typedef void *_iconv_t;
               ^
In file included from c:\devkitpro\devkitarm\arm-none-eabi\include\string.h:11:0,
                 from .\Sources\menu.c:3:
c:\devkitpro\devkitarm\arm-none-eabi\include\sys\reent.h:22:25: error: storage class specified for parameter '__ULong'
 typedef unsigned __Long __ULong;
                         ^
c:\devkitpro\devkitarm\arm-none-eabi\include\sys\reent.h:49:3: error: expected specifier-qualifier-list before '__ULong'
   __ULong _x[1];
   ^
c:\devkitpro\devkitarm\arm-none-eabi\include\sys\reent.h:76:2: error: expected specifier-qualifier-list before '__ULong'
  __ULong _fntypes;                    /* type of exit routine -
  ^
c:\devkitpro\devkitarm\arm-none-eabi\include\sys\reent.h:200:3: error: expected specifier-qualifier-list before '_fpos_t'
   _fpos_t _EXFNPTR(_seek, (struct _reent *, _PTR, _fpos_t, int));
   ^
c:\devkitpro\devkitarm\arm-none-eabi\include\sys\reent.h:285:26: error: storage class specified for parameter '__FILE'
 typedef struct __sFILE   __FILE;
                          ^
c:\devkitpro\devkitarm\arm-none-eabi\include\sys\reent.h:293:3: error: expected specifier-qualifier-list before '__FILE'
   __FILE *_iobs;
   ^
c:\devkitpro\devkitarm\arm-none-eabi\include\sys\reent.h:576:3: error: expected specifier-qualifier-list before '__FILE'
   __FILE *_stdin, *_stdout, *_stderr;
   ^
c:\devkitpro\devkitarm\arm-none-eabi\include\sys\reent.h:762:23: error: storage class specified for parameter '_impure_ptr'
 extern struct _reent *_impure_ptr __ATTRIBUTE_IMPURE_PTR__;
                       ^
c:\devkitpro\devkitarm\arm-none-eabi\include\sys\reent.h:763:30: error: storage class specified for parameter '_global_impure_ptr'
 extern struct _reent *_CONST _global_impure_ptr __ATTRIBUTE_IMPURE_PTR__;
                              ^
In file included from c:\devkitpro\devkitarm\arm-none-eabi\include\string.h:10:0,
                 from .\Sources\menu.c:3:
c:\devkitpro\devkitarm\arm-none-eabi\include\string.h:21:8: error: expected declaration specifiers or '...' before 'size_t'
 _PTR   _EXFUN(memchr,(const _PTR, int, size_t));
        ^
c:\devkitpro\devkitarm\arm-none-eabi\include\string.h:22:7: error: expected declaration specifiers or '...' before 'size_t'
 int   _EXFUN(memcmp,(const _PTR, const _PTR, size_t));
       ^
c:\devkitpro\devkitarm\arm-none-eabi\include\string.h:23:8: error: expected declaration specifiers or '...' before 'size_t'
 _PTR   _EXFUN(memcpy,(_PTR __restrict, const _PTR __restrict, size_t));
        ^
c:\devkitpro\devkitarm\arm-none-eabi\include\string.h:24:7: error: expected declaration specifiers or '...' before 'size_t'
 _PTR  _EXFUN(memmove,(_PTR, const _PTR, size_t));
       ^
c:\devkitpro\devkitarm\arm-none-eabi\include\string.h:25:7: error: expected declaration specifiers or '...' before 'size_t'
 _PTR  _EXFUN(memset,(_PTR, int, size_t));
       ^
In file included from .\Sources\menu.c:3:0:
c:\devkitpro\devkitarm\arm-none-eabi\include\string.h:31:1: error: expected declaration specifiers before 'size_t'
 size_t  _EXFUN(strcspn,(const char *, const char *));
 ^
c:\devkitpro\devkitarm\arm-none-eabi\include\string.h:33:1: error: expected declaration specifiers before 'size_t'
 size_t  _EXFUN(strlen,(const char *));
 ^
In file included from c:\devkitpro\devkitarm\arm-none-eabi\include\string.h:10:0,
                 from .\Sources\menu.c:3:
c:\devkitpro\devkitarm\arm-none-eabi\include\string.h:34:8: error: expected declaration specifiers or '...' before 'size_t'
 char  *_EXFUN(strncat,(char *__restrict, const char *__restrict, size_t));
        ^
c:\devkitpro\devkitarm\arm-none-eabi\include\string.h:35:6: error: expected declaration specifiers or '...' before 'size_t'
 int  _EXFUN(strncmp,(const char *, const char *, size_t));
      ^
c:\devkitpro\devkitarm\arm-none-eabi\include\string.h:36:8: error: expected declaration specifiers or '...' before 'size_t'
 char  *_EXFUN(strncpy,(char *__restrict, const char *__restrict, size_t));
        ^
In file included from .\Sources\menu.c:3:0:
c:\devkitpro\devkitarm\arm-none-eabi\include\string.h:39:1: error: expected declaration specifiers before 'size_t'
 size_t  _EXFUN(strspn,(const char *, const char *));
 ^
c:\devkitpro\devkitarm\arm-none-eabi\include\string.h:44:1: error: expected declaration specifiers before 'size_t'
 size_t  _EXFUN(strxfrm,(char *__restrict, const char *__restrict, size_t));
 ^
In file included from c:\devkitpro\devkitarm\arm-none-eabi\include\string.h:10:0,
                 from .\Sources\menu.c:3:
c:\devkitpro\devkitarm\arm-none-eabi\include\string.h:50:6: error: expected declaration specifiers or '...' before 'size_t'
 int  _EXFUN(bcmp,(const void *, const void *, size_t));
      ^
c:\devkitpro\devkitarm\arm-none-eabi\include\string.h:51:7: error: expected declaration specifiers or '...' before 'size_t'
 void  _EXFUN(bcopy,(const void *, void *, size_t));
       ^
c:\devkitpro\devkitarm\arm-none-eabi\include\string.h:52:7: error: expected declaration specifiers or '...' before 'size_t'
 void  _EXFUN(bzero,(void *, size_t));
       ^
c:\devkitpro\devkitarm\arm-none-eabi\include\string.h:57:7: error: expected declaration specifiers or '...' before 'size_t'
 _PTR  _EXFUN(memccpy,(_PTR __restrict, const _PTR __restrict, int, size_t));
       ^
c:\devkitpro\devkitarm\arm-none-eabi\include\string.h:63:8: error: expected declaration specifiers or '...' before 'size_t'
 _PTR   _EXFUN(memrchr,(const _PTR, int, size_t));
        ^
c:\devkitpro\devkitarm\arm-none-eabi\include\string.h:71:8: error: expected declaration specifiers or '...' before 'size_t'
 char  *_EXFUN(stpncpy,(char *__restrict, const char *__restrict, size_t));
        ^
c:\devkitpro\devkitarm\arm-none-eabi\include\string.h:86:8: error: expected declaration specifiers or '...' before 'size_t'
 char  *_EXFUN(strndup,(const char *, size_t));
        ^
c:\devkitpro\devkitarm\arm-none-eabi\include\string.h:90:8: error: expected declaration specifiers or '...' before 'size_t'
 char  *_EXFUN(_strndup_r,(struct _reent *, const char *, size_t));
        ^
c:\devkitpro\devkitarm\arm-none-eabi\include\string.h:106:5: error: expected declaration specifiers or '...' before 'size_t'
 int _EXFUN(strerror_r,(int, char *, size_t))
     ^
In file included from .\Sources\menu.c:3:0:
c:\devkitpro\devkitarm\arm-none-eabi\include\string.h:118:1: error: expected declaration specifiers before 'size_t'
 size_t _EXFUN(strlcat,(char *, const char *, size_t));
 ^
c:\devkitpro\devkitarm\arm-none-eabi\include\string.h:119:1: error: expected declaration specifiers before 'size_t'
 size_t _EXFUN(strlcpy,(char *, const char *, size_t));
 ^
In file included from c:\devkitpro\devkitarm\arm-none-eabi\include\string.h:10:0,
                 from .\Sources\menu.c:3:
c:\devkitpro\devkitarm\arm-none-eabi\include\string.h:122:5: error: expected declaration specifiers or '...' before 'size_t'
 int _EXFUN(strncasecmp,(const char *, const char *, size_t));
     ^
In file included from .\Sources\menu.c:3:0:
c:\devkitpro\devkitarm\arm-none-eabi\include\string.h:126:1: error: expected declaration specifiers before 'size_t'
 size_t  _EXFUN(strnlen,(const char *, size_t));
 ^
.\Sources\menu.c:6:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
 {
 ^
In file included from .\Sources\menu.c:1:0:
.\Sources\cheats.h:6:6: error: old-style parameter declarations in prototyped function definition
 void infstam(void)
      ^
.\Sources\menu.c:18:1: error: expected '{' at end of input
 }
 ^



2017-04-16 05:18:47 : !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2017-04-16 05:18:47 : There's some errors on your code.
2017-04-16 05:18:47 : Correct them and try again, for now I'm exiting the compilation.

2017-04-16 05:18:47 : !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!



E:\3DS_Stuff\NTR Plugins\MHXX-NTR-Plugin>pause
Press any key to continue . . .

My cheats.c
Code:
#include "cheats.h"
#include "hid.h"


char    *builder_name = "name";

void    infstam(void) {
  WRITEU32(0x00A5E914, E3A00001);
}

cheats.h
Code:
#ifndef CHEATS_H
#define CHEATS_H

#include "plugin.h"

void  infstam(void)
//names
#endif

menu.c
Code:
#include "cheats.h"
#include "notes.h"
#include <string.h>

void my_menus(void)
{
    int index;
    int i;

    set_hid_address(0x10002000);

    new_spoiler("Codes");
        new_entry("infstam",infstam);
    exit_spoiler();

    for (i = 2; i <= index; i++)
        set_note(notes[i - 2], i);
}

notes.h (Left alone for testing purposes)
Code:
#ifndef NOTES_H
#define NOTES_H

static const char * const notes[] =
{
    "Combat codes",
    "Refill your heart.\n\nPress the upper side of the touchscreen to execute this code.",
    "Refill your magic.\n\nPress the lower side of the touchscreen to execute this code.",
    "No more spin attack charge time with this code !",
    "Your sword will shine.\n\nThe game can be laggy",
    "Put your sticks in fire",
    "Moonjump:\n\nPress A to jump.\n\nYou can easily toogle this cheat in-game with DPAD Right.",
    "Move fast:\n\nPress X with any Stick direction to move fastly.\n\nYou can easily toogle this cheat in-game with DPAD Left.",
    "Endless carrots to bait your horse !",
    "New and untested !!!",
    "Moonjump:\n\nPress X + A to jump.\n\nNew and untested !!!",
    "New and untested !!!",
    "New and untested !!!",
    "Dungeon",
    "New and untested !!!",
    "New and untested !!!",
    "Inventory codes",
    "Misc.",
    "No more out of ammo with this infinite arrows code !",
    "Love the deku nuts ?\n\nTake some more then !",
    "Me too, when I was 5yo I loved having a stick in my hand to discover the world",
    "Make this building explode !",
    "What the hell is that design ?\n\nIt's war outside !",
    "Take this in your face !!",
    "I don't like spider man !",
    "Yeah !!!\n\nMake me rich !",
    "New and untested !!!",
    "New and untested !!!",
    "New and untested !!!",
    "Environment",
    "Time codes",
    "I wanna sleep some more !",
    "It's to hot to work !",
    "Wanna have a beer ?",
    "I don't wanna sleep...\n\nAlone ! :p",
    "New and untested !!!",
    "For the lazy guys",
    "Combat codes",
    "Be a wizard",
    "Be a great wizard",
    "Be a cat and get your 9 lifes",
    "Don't search arounf the world for what you can have in 5 seconds",
    "Be a really tough guy",
    "Equipment codes",
    "Get you kokiri's sword",
    "Be a legend !",
    "Want a broken sword ?",
    "Get you burnable shield",
    "For the love of Hyrule !!",
    "Whoaaa !!\n\nWhat a shiny shield you got !",
    "Be a lutin with this cheap suit\n\n#Tingle",
    "Be a demineur with this fire proof suit !",
    "Always wanted to be a fishman ?\n\n Be my guest !",
    "Unlock all",
    "Get 2,5 swords for the price of 1 !",
    "Get 3  shields for the price of 1",
    "Need some clothes ?",
    "Be god on earth and go defeat the evil Ganondorf",
    "Story codes",
    "Unlock all stones",
    "Unlock all medallions",
    "Fun codes",
    "Link's size",
    "Be a giant which crush everything under is feet",
    "Tired of being a laughable man ?",
    "Wanna see what's under the girl's skirt ?",
    "Jealous of mario ?",
    "New and untested !!!",
    "New and untested !!!",
};

#endif
I have python3.4 installed, devkitpro/arm installed. I don't know what I am doing wrong

I am such a fucking idiot. I forgot a semicolon after declaring my function in the cheat header file. I'm retarded.
 
Last edited by ThatBenderGuy,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Purple_Heart @ Purple_Heart: eh its almost end of the year in october