Welcome! Log In Create A New Profile

Advanced

N00b here using the tutorials

Posted by shawnboyhall 
N00b here using the tutorials
January 29, 2009 06:33PM
using the tutorials on grrlib tutorial 1

i get the following errors ???????

I checked the paths and every thing is in place

c:/projects/wii/samples/source/template.c:25: undefined reference to `GRRLIB_InitVideo'
c:/projects/wii/samples/source/template.c:26: undefined reference to `GRRLIB_Start'
c:/projects/wii/samples/source/template.c:32: undefined reference to `GRRLIB_FillScreen'
c:/projects/wii/samples/source/template.c:34: undefined reference to `GRRLIB_Render'
Re: N00b here using the tutorials
January 29, 2009 08:06PM
Sounds like you dont have GRRLIB properly installed or linked to your program.
Re: N00b here using the tutorials
January 29, 2009 08:11PM
Do you get any warnings?

(Arikado, should the compiler give any missing-header warnings?)
Re: N00b here using the tutorials
January 29, 2009 08:12PM
It is the linking step in the build.
Re: N00b here using the tutorials
January 29, 2009 09:07PM
Despite it being called grrLIB, I don't think there is an actual lib? So have all the GRRLIB .c/.h files in your source folder as well. Download the GRRLIB package from wiibrew, sitck your test.c in the same folder then make



Edited 1 time(s). Last edit at 01/29/2009 09:08PM by mattgentle.
Re: N00b here using the tutorials
January 29, 2009 09:12PM
****************************************************************************************************************************

/*===========================================
GRRLIB (GX version) 3.0.1 alpha
Code : NoNameNo
GX hints : RedShade

Template Code (Minimum Requirement)
============================================*/
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include

Mtx GXmodelView2D;

int main(){
VIDEO_Init();
WPAD_Init();

GRRLIB_InitVideo();
GRRLIB_Start();

while(1){
WPAD_ScanPads();
u32 wpaddown = WPAD_ButtonsDown(0);

GRRLIB_FillScreen(0xFF000000);

GRRLIB_Render();

if (wpaddown & WPAD_BUTTON_A) exit(0);
}
return 0;
}


*****************************************************************************************************

here is the Error

*****************************************************************************************************


"make"
template.c
c:/projects/wii/samples/source/template.c:39:2: warning: no newline at end of file
linking ... samples.elf
template.o: In function `main':
c:/projects/wii/samples/source/template.c:25: undefined reference to `GRRLIB_InitVideo'
c:/projects/wii/samples/source/template.c:26: undefined reference to `GRRLIB_Start'
c:/projects/wii/samples/source/template.c:32: undefined reference to `GRRLIB_FillScreen'
c:/projects/wii/samples/source/template.c:34: undefined reference to `GRRLIB_Render'
collect2: ld returned 1 exit status
make[1]: *** [/c/projects/wii/samples/samples.elf] Error 1
"make": *** [build] Error 2

> Process Exit Code: 2
> Time Taken: 00:03

**************************************************************************

let me know if it would be helpfull to have the dir listings
Re: N00b here using the tutorials
January 29, 2009 09:20PM
Join #wiihelp on efnet, i'll help you there
Re: N00b here using the tutorials
January 31, 2009 08:08AM
in your makefile you need to add -lGRRLIB (or something similar). Find out what the .a file is called. You can either add a path to that lib folder (-L/path/to/grr) or better yet stick it in your libogc wii lib folder.
search fat.a in your DKP folder to find it if you really have no idea where it could be.
Re: N00b here using the tutorials
January 31, 2009 08:16AM
WRONG. GRRLIB is not in a .a file - just find grrlib.c and grrlib.h and put them in with the rest of your code.
Re: N00b here using the tutorials
January 31, 2009 11:50AM
Who said that he couldn't just build his own .a file?
Re: N00b here using the tutorials
January 31, 2009 07:38PM
Of course he could but: a) there's no point for him to b) the comment above suggested there already was a .a file and he just needed to find it.
Re: N00b here using the tutorials
February 02, 2009 02:19PM
whoops, heh. No experience with grr here :$. Me -1 Tantric +1
Re: N00b here using the tutorials
February 02, 2009 02:52PM
Ok I Got it to work i just added it to my source folder on my project. can I add it to my libogc folder so I can call it without having to copy to my source file every time.
Sorry, only registered users may post in this forum.

Click here to login