You are not logged in.

  • Index
  •  » General Help
  •  » [RESOLVED] GRRLIB_Init() cant be used although GRRLIB is included

#1 2009-04-12 21:51:12

SteelSlasher
Member

[RESOLVED] GRRLIB_Init() cant be used although GRRLIB is included

This is just strange, try and see whats wrong:

Code:

#include "GRRLIB/GRRLIB.h"


//---------------------------------------------------------------------------------
int main(int argc, char **argv) {
//---------------------------------------------------------------------------------

    // Initialise the video system
    GRRLIB_Init();

Here is the error message from the compiler:

Code:

> "make" 
main.c
linking ... WiiBrowse.elf
main.o: In function `main':
c:/WiiBrowse/source/main.c:16: undefined reference to `GRRLIB_Init'
collect2: ld returned 1 exit status
make[1]: *** [/c/WiiBrowse/WiiBrowse.elf] Error 1
"make": *** [build] Error 2

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

i bet god cant figure this out

Offline

 

#2 2009-04-12 23:57:49

Crayon
Bad Mother Fucker

Re: [RESOLVED] GRRLIB_Init() cant be used although GRRLIB is included

In your Makefile did you include the path to the GRRLIB folder to compile the code:

Code:

GRRLIB        :=    ../../GRRLIB
TARGET        :=    $(notdir $(CURDIR))
BUILD        :=    build
SOURCES        :=    source source/gfx $(GRRLIB)/GRRLIB $(GRRLIB)/lib/libpng/pngu
DATA        :=    data  
INCLUDES    :=

Offline

 
  • Index
  •  » General Help
  •  » [RESOLVED] GRRLIB_Init() cant be used although GRRLIB is included

Board footer

Powered by FluxBB