Problem : Dev-C++ & SDL

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Locked
DrDummy
Posts: 2
Joined: Mon Oct 24, 2005 5:30 pm

Problem : Dev-C++ & SDL

Post by DrDummy »

Using Dev - C++ 4.9.9.2 on WinXP
Installed devkitPro (latest)
then installed SDL/SDL_image and all required packages (jpeg,zip,...) via Dev - C++ Tools->Update

Got all .h files in C:/Development/Dev-Cpp/include/SDL and I can see the lib files in C:/Development/Dev-Cpp/lib ...

however, I get this error message when I try to compile my program.

Code: Select all

$ make
psp-gcc -IC:/Development/Dev-Cpp/include/SDL -I. -IC:/devkitPro/devkitPSP/psp/sdk/include -O2 -G0 -Wall   -LC:/Development/Dev-Cpp/lib -L. -LC:/devkitPro/devkitPSP/psp/sdk/lib   main.o -lpspgu -lSDLmain -lSDL -lSDL_image -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspuser -lpspkernel -o sdktest.elf
main.o: In function `xmain':
main.c:(.text+0x1d0): undefined reference to `SDL_RWFromFile'
main.c:(.text+0x1dc): undefined reference to `SDL_LoadBMP_RW'
make: *** [sdktest.elf] Error 1
can anyone help me ? it is so darm hard to setup the development env.

Thanks
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

This was just answered in a thread called SDL_image yesterday. Did you bother to look? Locked for redundancy.
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Locked