Compile error in VC++

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

Moderators: cheriff, TyRaNiD

Post Reply
iynaix
Posts: 2
Joined: Sat Oct 29, 2005 11:46 pm
Location: Singapore

Compile error in VC++

Post by iynaix »

Im kinda new to psp programming, just started like maybe last week. I downloaded and successfully installed MPH's appwizard for Visucal C++. However, today i encountered a problem while trying to compile, here is the bulid report:

Code: Select all

--------------------Configuration: Sample - Win32 Debug--------------------
Copie du crt0.o dans le dossier du projet
        1 file(s) copied.
Copie de la dll libiconv-2.dll pour psp-gcc
        1 file(s) copied.
Compilation des fichiers c
main.c: In function 'CallbackThread':
main.c:67: warning: passing argument 2 of 'sceKernelCreateCallback' from incompatible pointer type
main.c: In function 'SetupCallbacks':
main.c:78: warning: passing argument 2 of 'sceKernelCreateThread' from incompatible pointer type
main.c:96:2: warning: no newline at end of file
pg.c: In function 'pgFillvram':
pg.c:105: warning: pointer targets in assignment differ in signedness
pg.c: In function 'pgBitBlt':
pg.c:119: warning: pointer targets in assignment differ in signedness
pg.c: In function 'pgPutChar':
pg.c:148: warning: comparison is always false due to limited range of data type
pg.c:150: warning: pointer targets in assignment differ in signedness
Linkage
pg.o: In function `pgWaitVn':
D:\Xianyi\c++\psptest/pg.c:32: multiple definition of `font'
font.o:(.rodata+0x0): first defined here
main.o: In function `main':
D:\Xianyi\c++\psptest/main.c:92: undefined reference to `RGBx'
D:\Xianyi\c++\psptest/main.c:92: undefined reference to `pgFillVram'
pg.o: In function `pgBoxFillAlpha':
pg.c:(.text+0x11c0): undefined reference to `BackBmp'
pg.c:(.text+0x11c8): undefined reference to `BackBmp'
pg.c:(.text+0x1204): undefined reference to `BackBmp'
pg.c:(.text+0x120c): undefined reference to `BackBmp'
pg.c:(.text+0x1250): undefined reference to `BackBmp'
pg.o:pg.c:(.text+0x1258): more undefined references to `BackBmp' follow
Effacer les fichiers inutiles
Trouver le bon repertoire
Création du PBP
A subdirectory or file .\SAMPLE% already exists.
Creation du PBP terminée -> filesize : 00015361
Renommer en EBOOT.PBP
A subdirectory or file .\SAMPLE already exists.
The system cannot find the file specified.
Error executing c:\windows\system32\cmd.exe.

EBOOT.PBP - 1 error(s), 7 warning(s)
What is the error here? It says that there is an error executing cmd.exe, but this has never happened before, and im not sure how to fix it. Any help on this problem would be much appreciated!

A link to my project:
http://www.megaupload.com/?d=IJLTQC4M
User avatar
ReKleSS
Posts: 73
Joined: Sat Jun 18, 2005 12:57 pm
Location: Melbourne, Australia

Post by ReKleSS »

You're using the old build system, pre pspsdk. Take a look at the sdk samples and around the forums to see how you should be doing things now. It's gotten a lot easier.
-ReK
Post Reply