When trying to compile homebrew, I'm getting an error

Discussion in 'Wii U - Hacking & Backup Loaders' started by shutterbug2000, Sep 28, 2016.

  1. shutterbug2000
    OP

    shutterbug2000 Cubic NINJHAX!

    Member
    1,078
    2,087
    Oct 11, 2014
    United States
    I get:

    undefined reference to '__init'

    Anyone know why?

    Thanks!

    (If you need to look at the source code, I can PM it to you if you're willing to help ;) )
     
  2. CJB100

    CJB100 Programmer, Media Producer, Hardware Repair

    Member
    489
    330
    May 8, 2016
    United States
    USA
    sounds like it's complaining of an undefined method or variable called __init. Got anything like that in your code? When do you get this? Are you using a make file? And if so, does it contain references to all libraries and resources?
     
  3. shutterbug2000
    OP

    shutterbug2000 Cubic NINJHAX!

    Member
    1,078
    2,087
    Oct 11, 2014
    United States
    It's being called from libgcc's __eabi function. The makefile is the hello world example's makefile with a few changes.

    Here's the full error:

    upload_2016-9-27_22-1-38.png

    (with the undefined reference underneath)
     
  4. QuarkTheAwesome

    QuarkTheAwesome Working for Hugs

    Member
    765
    1,868
    Apr 19, 2015
    Australia
    Stuck in the PowerPC
    Try a fresh devKitPPC install. I'd also double-check your Makefile modifications - seems to me that you've messed up your compiler flags and it's trying to complie for Wii.