You are not logged in.
Hi, I've been working on a small testing program so that I can become start to become familiar with the programming libraries, and in my test to use grrlib to genereate a menu, I get this.
main.o: In function `main':
c:/devkitpro/myprog/menutest/source/main.c:15: undefined reference to `GRRLIB_Init'
c:/devkitpro/myprog/menutest/source/main.c:16: undefined reference to `GRRLIB_LoadTexture'
c:/devkitpro/myprog/menutest/source/main.c:17: undefined reference to `GRRLIB_Printf'
collect2: ld returned 1 exit status
My problem now is how do I solve this. I have barely written any code. Here it is.
#include <grrlib.h> #include <stdlib.h> #include <math.h> #include <malloc.h> #include <fat.h> //Calls button presses from the Wii Remote as if it was held Horizontally. //It calls wpad #include "horzpad.h" #include "../gfx/mmshadow.h" int main() { GRRLIB_Init(); GRRLIB_texImg *MainFont = GRRLIB_LoadTexture(mmshadow); GRRLIB_Printf(200,230,MainFont,0xFFFFFFFF,1,"A Menu"); while (0) { if (HomePress()) exit(0); } return (0); };
Does anyone have any suggestions?
Offline
I think you forgot to include GRRLIB in your Makefile.
Look at the code in the template: http://code.google.com/p/grrlib/source/ … akefile#33
Offline
Thank you. That fixed it. I now feel like an idiot ^_^'
Offline
anyway this code wont show anything on screen...
Offline
Really? Why not? Am I missing something?
Offline
You are not calling GRRLIB_Render().
Look at the GRRLIB template code: http://grrlib.santo.fr/doc/template_2so … ample.html
Offline