• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Akari, Red, Kris, May - which Pokémon protagonist is your favorite? Let us know by voting in our semifinal favorite protagonist poll!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

undefined reference to gSwarmTableLength error when building CFRU

  • 1
    Posts
    5
    Years
    • Seen Jun 11, 2025
    when I try to build my CFRU hack into a test rom, it throws the following error:

    C://devkitPro//devkitARM//bin/arm-none-eabi-ld: warning: build/linked.o has a LOAD segment with RWX permissions
    C://devkitPro//devkitARM//bin/arm-none-eabi-ld: ./build\93544cbfeaccb40e58088fd3882f85bf.o: in function `TryGenerateWildMon': wild_encounter.c:(.text+0x8cc): undefined reference to `gSwarmTableLength'
    C://devkitPro//devkitARM//bin/arm-none-eabi-ld: ./build\93544cbfeaccb40e58088fd3882f85bf.o: in function `TryUpdateSwarm':
    wild_encounter.c:(.text+0xb34): undefined reference to `gSwarmTableLength'

    I don't know what to do to fix this issue, can anyone help me?
     
    Back
    Top