I´m here again and I have another new problem.
I'm trying to use SDL libraries. My program looks like this:
Code: Select all
#include <pspkernel.h>
#include <SDL/SDL.h>
...
int main(int argc, char* argv[])
{
SetupCallbacks();
SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO);
...
SDL_Quit();
sceKernelExitGame();
return 0;
}
...
Code: Select all
main.cpp:(.text+0x144): referencia a `SDL_Init' sin definir
main.cpp:(.text+0x15c): referencia a `SDL_Quit' sin definir
Code: Select all
main.cpp:(.text+0x144): undefined reference to `SDL_Init'
main.cpp:(.text+0x15c): undefined reference to `SDL_Quit'
Code: Select all
#ifndef _SDL_H
#define _SDL_H
#include "SDL_main.h"
#include "SDL_types.h"
#include "SDL_getenv.h"
#include "SDL_error.h"
#include "SDL_rwops.h"
#include "SDL_timer.h"
#include "SDL_audio.h"
#include "SDL_cdrom.h"
#include "SDL_joystick.h"
#include "SDL_events.h"
#include "SDL_video.h"
#include "SDL_byteorder.h"
#include "SDL_version.h"
#include "begin_code.h"
...
extern DECLSPEC int SDLCALL SDL_Init(Uint32 flags);
...
extern DECLSPEC void SDLCALL SDL_Quit(void);
...
#include "close_code.h"
...
Any suggestion?
EDIT: I don't know so much about Makefile, may be I need to add some library there?
Code: Select all
...
LIBS = -unknown_option
...