Page 1 of 1

Help compilling over Mac OS 10.5 + Xcode 3

Posted: Sat Sep 27, 2008 12:04 pm
by misato
Hi,
First of all i'm newbie at developing for Wii or GC. I've found a hello world template in the cvs and tried to complie and try it over my wii.
I'm using devkitppc r15 over Mac os 10.5 and compilling with it over Xcode 3.
When i try to build the project, it sais:

Code: Select all

/Users/misato/Desktop/Untitled/source/main.c:17: undefined reference to `WPAD_Init'
/Users/misato/Desktop/Untitled/source/main.c:58: undefined reference to `WPAD_ScanPads'
/Users/misato/Desktop/Untitled/source/main.c:62: undefined reference to `WPAD_ButtonsDown'
The main.c is this one: http://devkitpro.cvs.sourceforge.net/de ... iew=markup

At first i suposed that wpad.h doesn't exist on my pc but it's here, and correct. Also Xcode recognised it because if i write WPAD_ it suggested me the functions on this library.

Does anybody knows what is happening?

Thanks in anticipation, and sorry for my poor written english

Re: Help compilling over Mac OS 10.5 + Xcode 3

Posted: Wed Oct 29, 2008 10:15 am
by WinterMute
This is a link error caused by not specifying -lwiiuse in your makefile. See the template Makefile for the libraries you need to link.

http://devkitpro.cvs.sourceforge.net/vi ... iew=markup

Re: Help compilling over Mac OS 10.5 + Xcode 3

Posted: Wed Oct 29, 2008 10:42 am
by misato
Thank you very much, i'll take a look of it at home. :)