derek57 / sdl-wii

Automatically exported from code.google.com/p/sdl-wii
0 stars 0 forks source link

Undefined references to KEYBOARD functions #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to compile a test file using SDL (with Devkit Pro and Programmer's
Notepad). Also tried to compile SDL-wii, same results.
2. Errors given: 
   a. undefined reference to `KEYBOARD_Init'
   b. undefined reference to `KEYBOARD_GetEvent'

What is the expected output? What do you see instead?

- No output

What version of the product are you using? On what operating system?

Two versions I have tried: 11-29-2009 binaries, and the SVN version, (got
it about a few weeks ago I believe). 

Please provide any additional information below.

Here are the exact errors that I get:

c:/DevKit/libogc/lib/wii\libSDL.a(SDL_wii_main.o): In function `main':
c:\Users\Daryl\Desktop\Projects\sdl-wii\SDL/src/main/wii/SDL_wii_main.c:69:
undefined reference to `KEYBOARD_Init'
c:/DevKit/libogc/lib/wii\libSDL.a(SDL_wiievents.o): In function `PumpEvents':
c:\Users\Daryl\Desktop\Projects\sdl-wii\SDL/src/video/wii/SDL_wiievents.c:60:
undefined reference to `KEYBOARD_GetEvent'

Original issue reported on code.google.com by dancinninjac on 5 Feb 2010 at 9:17

GoogleCodeExporter commented 9 years ago
the libogc usb keyboard lib is a dependency of SDL Wii. So just add 
-lwiikeyboard to 
your makefile. Here's what I have for SMW for example:

LIBS := -lSDL_mixer -lsmpeg -lSDL_image -lSDL_net -lSDL -lpng -ljpeg -lz 
-lwiiuse \ 
                 -lfat -lbte -logc -lvorbisidec -lfreetype -lwiikeyboard 

Original comment by dborth@gmail.com on 5 Feb 2010 at 10:22