:: PlayerAdvance.org ::

:: PlayerAdvance.org :: (http://www.playeradvance.org/forum/index.php)
-   Aide au développement (http://www.playeradvance.org/forum/forumdisplay.php?f=185)
-   -   Danzeff OSK + OSLIB (http://www.playeradvance.org/forum/showthread.php?t=19593)

fiorello 13/02/2008 22h53

Danzeff OSK + OSLIB
 
HI,

I have some problems including this wonderfull OSK to my game.

Code:

1>------ Build started: Project: Project2, Configuration: Debug Win32 ------
1>Performing Makefile project actions
1>psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -G4 -Wall -O2  -D_PSP_FW_VERSION=150  -L. -L/usr/local/pspdev/psp/sdk/lib  main.o -losl -lpng -lz -lpspsdk -lpspctrl -lpspumd -lpsprtc -lpsppower -lpspgu -lpspaudiolib -lpspaudio -lm -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o Project2.elf
1>main.o: In function `main':
1>main.c:(.text+0x538): undefined reference to `danzeff_load'
1>collect2: ld returned 1 exit status
1>make: *** [Project2.elf] Error 1
1>Nie można odnaleźć dysku.
1>Build log was saved at "file://c:\Documents and Settings\daniel\Moje dokumenty\Visual Studio 2005\Projects\Project2\Project2\Debug\BuildLog.htm"
1>Project2 - 0 error(s), 0 warning(s)
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

^ Heres what is my problem.

i included danzeff.h (danzeff.c is included inside of danzeff header file)
then somewhere in the code is danzeff_load();

daaa57150 14/02/2008 11h40

danzeff.c is included in danzeff.h ??? that's weird...
anyway, try to add danzeff.o after main.o in your makefile to see if it works.

Tembargo 14/02/2008 14h41

1>Nie można odnaleźć dysku.
:hmm:

fiorello 14/02/2008 19h03

Citation:

Envoyé par Tembargo (Message 171206)
1>Nie można odnaleźć dysku.
:hmm:

1> Cant fin disc (something like that in polish) but nevermind i just didnt plug psp in :)

And about adding danzeff.o to makefile:
1>make: *** No rule to make target `danzeff.o', needed by `Project2.elf'. Stop.

fiorello 14/02/2008 21h57

Citation:

Envoyé par fiorello (Message 171268)
1> Cant fin disc (something like that in polish) but nevermind i just didnt plug psp in :)

And about adding danzeff.o to makefile:
1>make: *** No rule to make target `danzeff.o', needed by `Project2.elf'. Stop.

I was also trying to add lSDL_image -lSDL
to LIBS in my makefile but this error appears 1>/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/bin/ld: cannot find -lSDL_image.

Where i can download this lib and where to put this libs (im using files from oslib tutorial -Pack-dev-psp-2 (or something like that)).

thanks


Fuseau horaire GMT +2. Il est actuellement 05h50.

Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd. Tous droits réservés.
Version française #16 par l'association vBulletin francophone