My porting crusade - part two

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

Moderators: cheriff, TyRaNiD

Post Reply
gambiting
Posts: 154
Joined: Thu Aug 17, 2006 5:39 pm

My porting crusade - part two

Post by gambiting »

Hi!As mentioned in my previous thread I'm currently trying to port linux Xmoto game to psp.After fighting with sdl functions now I have a very strange problem...

Code: Select all

debian:/home/gambiting/xmoto-0.2.7/src# make
psp-gcc -I/usr/local/pspdev/psp/sdk/include/libc -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -D_PSP_FW_VERSION=150  -L. -L/usr/local/pspdev/psp/sdk/lib   GameMain.o BuiltInFont.o Image.o VApp.o VBezier.o VDraw.o VDrawOpenGL.o PolyDraw.o VDrawSDLgfx.o VFileIO.o VTexture.o VXml.o DBuffer.o CRCHash.o Theme.o WWW.o Locales.o Packager.o BSP.o Game.o GameMenus.o GUIBestTimes.o GUIButton.o GUI.o GUIFrame.o GUIList.o GUIStatic.o GUITabView.o MotoGame.o MotoGameL.o MPhysics.o PlayerData.o Renderer.o RendererInit.o Replay.o Sound.o UserConfig.o GUIXMoto.o RendererParticles.o RendererBike.o Input.o GameSerializer.o Collision.o GUIEdit.o RendererFBO.o ReplayList.o Stats.o ScriptDynamicObjects.o SomersaultCounter.o GameEvents.o Credits.o GameInit.o GameDrawFrame.o LevelsManager.o xmscene/Level.o xmscene/Zone.h xmscene/Zone.o xmscene/Block.o xmscene/Entity.o xmscene/SkyApparence.o xmscene/BikeController.o xmscene/BikeParameters.o xmscene/BikeAnchors.o xmscene/Bike.o -L/usr/local/pspdev/psp/lib -lSDLmain -lSDL -lm -lGL -lpspvfpu -L/usr/local/pspdev/psp/sdk/lib -lpspdebug -lpspgu -lpspctrl -lpspge -lpspdisplay -lpsphprm -lpspsdk -lpsprtc -lpspaudio -lc -lpspuser -lpsputility -lpspkernel -lstdc++ -llua -lglut -lGLU -lGL -lode -lSDL -lSDLmain -lSDL_gfx -lSDL_mixer -lpng -ljpeg -lz -lpsprtc  -lpspdebug -lpspgu -lpspctrl -lpspge -lpspdisplay -lpsphprm -lpspaudio -lc -lpspuser -lpspkernel -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspuser -lpspkernel -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lpsplibc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o Xmoto.elf
In file included from xmscene/../helpers/VMath.h:25,
                 from xmscene/Zone.h:25:
xmscene/../helpers/../VCommon.h:70:20: error: vector.h: No such file or directory
xmscene/../helpers/../VCommon.h:71:19: error: queue.h: No such file or directory
xmscene/../helpers/../VCommon.h:72:17: error: map.h: No such file or directory
xmscene/../helpers/../VCommon.h:73:22: error: iostream.h: No such file or directory
xmscene/../helpers/../VCommon.h:74:21: error: sstream.h: No such file or directory
I'm almost sure that's because it's using psp-gcc instead of psp-g++.It works perfect it I do a simple code in c++,like :

Code: Select all

#include <iostream.h>
int main&#40;&#41;
&#123;
return 0;
&#125;

- This code compiles with psp-g++ without problems(if saved as main.cpp).This file the error is about(VCommon.h) is a header file,so I don't know what's a problem here.Please help(again) :-D
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

With that command line, it should be just linking, not compiling anything, so that error doesn't make much sense. If you upload your code again somewhere I'll take a look.
gambiting
Posts: 154
Joined: Thu Aug 17, 2006 5:39 pm

Post by gambiting »

Here you go:
http://rapidshare.com/files/33055740/src.zip
It's much bigger this time,because part of the code was already compiled.Thx.
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

xmscene/../helpers/../VCommon.h:70:20: error: vector.h: No such file or directory
xmscene/../helpers/../VCommon.h:71:19: error: queue.h: No such file or directory
xmscene/../helpers/../VCommon.h:72:17: error: map.h: No such file or directory
xmscene/../helpers/../VCommon.h:73:22: error: iostream.h: No such file or directory
xmscene/../helpers/../VCommon.h:74:21: error: sstream.h: No such file or directory

In the VCommon.h file try flipping the include /'s around see if that makes any difference.

It did for Daedalus :)
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

gambiting wrote:Here you go:
OK, a few things jump out:
  1. Your makefile is misbehaving because your system clock is screwed up. Half the files in that src.zip are dated August 2007, and so files that are supposed to be getting built are assumed to be already up-to-date. Fix your system clock, then run "find . | xargs touch" to fix all file dates.
  2. Once you do that, run "make clean" followed by "make" and you'll see that you have even more build errors before you get to the link.
  3. The specific reason for the error is because you incorrectly included "xmscene/Zone.h" in the link. You've explicitly listed it in OBJS for some reason.
gambiting
Posts: 154
Joined: Thu Aug 17, 2006 5:39 pm

Post by gambiting »

jimparis wrote:
gambiting wrote:Here you go:
OK, a few things jump out:
  1. Your makefile is misbehaving because your system clock is screwed up. Half the files in that src.zip are dated August 2007, and so files that are supposed to be getting built are assumed to be already up-to-date. Fix your system clock, then run "find . | xargs touch" to fix all file dates.
  2. Once you do that, run "make clean" followed by "make" and you'll see that you have even more build errors before you get to the link.
  3. The specific reason for the error is because you incorrectly included "xmscene/Zone.h" in the link. You've explicitly listed it in OBJS for some reason.
Ok,thanks,my system clock was wrong indeed(but I don't know why),and I missed that header file.After few more of my modifications all files compile succesfully,but at linking stage it shows:

Code: Select all

psp-gcc -I/usr/local/pspdev/psp/sdk/include/libc -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -D_PSP_FW_VERSION=150  -L. -L/usr/local/pspdev/psp/sdk/lib   GameMain.o BuiltInFont.o Image.o VApp.o VBezier.o VDraw.o VDrawOpenGL.o PolyDraw.o VDrawSDLgfx.o VFileIO.o VTexture.o VXml.o DBuffer.o CRCHash.o Theme.o WWW.o Locales.o Packager.o BSP.o Game.o GameMenus.o GUIBestTimes.o GUIButton.o GUI.o GUIFrame.o GUIList.o GUIStatic.o GUITabView.o MotoGame.o MotoGameL.o MPhysics.o PlayerData.o Renderer.o RendererInit.o Replay.o Sound.o UserConfig.o GUIXMoto.o RendererParticles.o RendererBike.o Input.o GameSerializer.o Collision.o GUIEdit.o RendererFBO.o ReplayList.o Stats.o ScriptDynamicObjects.o SomersaultCounter.o GameEvents.o Credits.o GameInit.o GameDrawFrame.o LevelsManager.o xmscene/Level.o xmscene/Zone.o xmscene/Block.o xmscene/Entity.o xmscene/SkyApparence.o xmscene/BikeController.o xmscene/BikeParameters.o xmscene/BikeAnchors.o xmscene/Bike.o image/tim.cpp image/tim_io_stdio.cpp image/tim_jpeg.cpp image/tim_memory_crt.cpp image/tim_png.cpp md5sum/md5.c md5sum/md5file.cpp helpers/VMath.cpp helpers/SwapEndian.cpp helpers/FileCompression.cpp helpers/Color.cpp BuiltInFont.cpp Image.cpp VApp.cpp VBezier.cpp VDraw.cpp VDrawOpenGL.cpp PolyDraw.h PolyDraw.cpp VDrawSDLgfx.cpp VFileIO.cpp VTexture.cpp VXml.cpp tinyxml/tinystr.cpp tinyxml/tinyxml.cpp tinyxml/tinyxmlerror.cpp tinyxml/tinyxmlparser.cpp -L/usr/local/pspdev/psp/lib -lSDLmain -lSDL -lm -lGL -lpspvfpu -L/usr/local/pspdev/psp/sdk/lib -lpspdebug -lpspgu -lpspctrl -lpspge -lpspdisplay -lpsphprm -lpspsdk -lpsprtc -lpspaudio -lc -lpspuser -lpsputility -lpspkernel -lstdc++ -llua -lglut -lGLU -lGL -lode -lSDL -lSDLmain -lSDL_gfx -lSDL_mixer -lpng -ljpeg -lz -lpsprtc  -lpspdebug -lpspgu -lpspctrl -lpspge -lpspdisplay -lpsphprm -lpspaudio -lc -lpspuser -lpspkernel -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspuser -lpspkernel -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lpsplibc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o Xmoto.elf
image/tim.cpp&#58; In function ‘int tim_get_bytes_per_pixel&#40;tim_pixel_type_t&#41;’&#58;
image/tim.cpp&#58;332&#58; warning&#58; enumeration value ‘TIM_PT_UNKNOWN’ not handled in switch
image/tim_jpeg.cpp&#58; In function ‘int tim_jpeg_load&#40;tim_session_t*, tim_image_t**, tim_image_info_t*, char*&#41;’&#58;
image/tim_jpeg.cpp&#58;545&#58; error&#58; call of overloaded ‘strcasecmp&#40;char*&, const char &#91;6&#93;&#41;’ is ambiguous
/usr/local/pspdev/psp/sdk/include/libc/string.h&#58;76&#58; note&#58; candidates are&#58; int strcasecmp&#40;const char*, const char*&#41;
image/tim_jpeg.cpp&#58;41&#58; note&#58;                 int strcasecmp&#40;char*, char*&#41;
image/tim_jpeg.cpp&#58;546&#58; error&#58; call of overloaded ‘strcasecmp&#40;char*&, const char &#91;6&#93;&#41;’ is ambiguous
/usr/local/pspdev/psp/sdk/include/libc/string.h&#58;76&#58; note&#58; candidates are&#58; int strcasecmp&#40;const char*, const char*&#41;
image/tim_jpeg.cpp&#58;41&#58; note&#58;                 int strcasecmp&#40;char*, char*&#41;
image/tim_jpeg.cpp&#58;581&#58; warning&#58; comparison between signed and unsigned integer expressions
image/tim_jpeg.cpp&#58; In function ‘int tim_jpeg_save&#40;tim_image_t*, char*&#41;’&#58;
image/tim_jpeg.cpp&#58;666&#58; warning&#58; comparison between signed and unsigned integer expressions
image/tim_jpeg.cpp&#58; At global scope&#58;
image/tim_jpeg.cpp&#58;41&#58; warning&#58; ‘int strcasecmp&#40;char*, char*&#41;’ defined but not used
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;103&#58; error&#58; ‘&#58;&#58;calloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;106&#58; error&#58; ‘&#58;&#58;free’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;110&#58; error&#58; ‘&#58;&#58;malloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;118&#58; error&#58; ‘&#58;&#58;realloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;103&#58; error&#58; ‘&#58;&#58;calloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;106&#58; error&#58; ‘&#58;&#58;free’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;110&#58; error&#58; ‘&#58;&#58;malloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;118&#58; error&#58; ‘&#58;&#58;realloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;103&#58; error&#58; ‘&#58;&#58;calloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;106&#58; error&#58; ‘&#58;&#58;free’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;110&#58; error&#58; ‘&#58;&#58;malloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;118&#58; error&#58; ‘&#58;&#58;realloc’ has not been declared
./MotoGame.h&#58;101&#58; warning&#58; ‘class vapp&#58;&#58;MotoGameHooks’ has virtual functions but non-virtual destructor
helpers/FileCompression.cpp&#58;26&#58;21&#58; error&#58; bzlib.h&#58; No such file or directory
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;103&#58; error&#58; ‘&#58;&#58;calloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;106&#58; error&#58; ‘&#58;&#58;free’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;110&#58; error&#58; ‘&#58;&#58;malloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;118&#58; error&#58; ‘&#58;&#58;realloc’ has not been declared
helpers/FileCompression.cpp&#58; In static member function ‘static void FileCompression&#58;&#58;bunzip2&#40;std&#58;&#58;string, std&#58;&#58;string&#41;’&#58;
helpers/FileCompression.cpp&#58;34&#58; error&#58; ‘BZFILE’ was not declared in this scope
helpers/FileCompression.cpp&#58;34&#58; error&#58; ‘b_in’ was not declared in this scope
helpers/FileCompression.cpp&#58;45&#58; error&#58; ‘BZ2_bzReadOpen’ was not declared in this scope
helpers/FileCompression.cpp&#58;46&#58; error&#58; ‘BZ_OK’ was not declared in this scope
helpers/FileCompression.cpp&#58;47&#58; error&#58; ‘BZ2_bzReadClose’ was not declared in this scope
helpers/FileCompression.cpp&#58;60&#58; error&#58; ‘BZ_OK’ was not declared in this scope
helpers/FileCompression.cpp&#58;62&#58; error&#58; ‘BZ2_bzRead’ was not declared in this scope
helpers/FileCompression.cpp&#58;63&#58; error&#58; ‘BZ_STREAM_END’ was not declared in this scope
helpers/FileCompression.cpp&#58;67&#58; error&#58; ‘BZ2_bzReadClose’ was not declared in this scope
helpers/FileCompression.cpp&#58;76&#58; error&#58; ‘BZ_STREAM_END’ was not declared in this scope
helpers/FileCompression.cpp&#58;77&#58; error&#58; ‘BZ2_bzReadClose’ was not declared in this scope
helpers/FileCompression.cpp&#58;82&#58; error&#58; ‘BZ2_bzReadClose’ was not declared in this scope
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;103&#58; error&#58; ‘&#58;&#58;calloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;106&#58; error&#58; ‘&#58;&#58;free’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;110&#58; error&#58; ‘&#58;&#58;malloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;118&#58; error&#58; ‘&#58;&#58;realloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;103&#58; error&#58; ‘&#58;&#58;calloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;106&#58; error&#58; ‘&#58;&#58;free’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;110&#58; error&#58; ‘&#58;&#58;malloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;118&#58; error&#58; ‘&#58;&#58;realloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;103&#58; error&#58; ‘&#58;&#58;calloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;106&#58; error&#58; ‘&#58;&#58;free’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;110&#58; error&#58; ‘&#58;&#58;malloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;118&#58; error&#58; ‘&#58;&#58;realloc’ has not been declared
./MotoGame.h&#58;101&#58; warning&#58; ‘class vapp&#58;&#58;MotoGameHooks’ has virtual functions but non-virtual destructor
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;103&#58; error&#58; ‘&#58;&#58;calloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;106&#58; error&#58; ‘&#58;&#58;free’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;110&#58; error&#58; ‘&#58;&#58;malloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;118&#58; error&#58; ‘&#58;&#58;realloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;103&#58; error&#58; ‘&#58;&#58;calloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;106&#58; error&#58; ‘&#58;&#58;free’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;110&#58; error&#58; ‘&#58;&#58;malloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;118&#58; error&#58; ‘&#58;&#58;realloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;103&#58; error&#58; ‘&#58;&#58;calloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;106&#58; error&#58; ‘&#58;&#58;free’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;110&#58; error&#58; ‘&#58;&#58;malloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;118&#58; error&#58; ‘&#58;&#58;realloc’ has not been declared
VDrawOpenGL.cpp&#58; In member function ‘virtual void vapp&#58;&#58;DrawLibOpenGL&#58;&#58;startDraw&#40;vapp&#58;&#58;DrawMode&#41;’&#58;
VDrawOpenGL.cpp&#58;360&#58; warning&#58; enumeration value ‘DRAW_MODE_NONE’ not handled in switch
VDrawOpenGL.cpp&#58; In member function ‘virtual void vapp&#58;&#58;DrawLibOpenGL&#58;&#58;setBlendMode&#40;vapp&#58;&#58;BlendMode&#41;’&#58;
VDrawOpenGL.cpp&#58;416&#58; warning&#58; converting to non-pointer type ‘int’ from NULL
VDrawOpenGL.cpp&#58;416&#58; warning&#58; NULL used in arithmetic
PolyDraw.h&#58;4&#58; error&#58; syntax error before ‘vapp’
PolyDraw.h&#58;4&#58; error&#58; syntax error before ‘&#123;’ token
PolyDraw.h&#58;12&#58; error&#58; syntax error before ‘&#125;’ token
PolyDraw.h&#58;15&#58; error&#58; syntax error before ‘*’ token
PolyDraw.h&#58;15&#58; warning&#58; type defaults to ‘int’ in declaration of ‘PolyDraw’
PolyDraw.h&#58;15&#58; warning&#58; data definition has no type or storage class
PolyDraw.h&#58;19&#58; error&#58; syntax error before ‘*’ token
PolyDraw.h&#58;21&#58; error&#58; syntax error before ‘SDL_Surface’
PolyDraw.h&#58;23&#58; error&#58; syntax error before ‘&#58;’ token
PolyDraw.h&#58;26&#58; warning&#58; type defaults to ‘int’ in declaration of ‘m_pLeftEdge’
PolyDraw.h&#58;26&#58; warning&#58; type defaults to ‘int’ in declaration of ‘m_pRightEdge’
PolyDraw.h&#58;26&#58; warning&#58; data definition has no type or storage class
PolyDraw.h&#58;30&#58; error&#58; syntax error before ‘EdgeValue’
PolyDraw.h&#58;33&#58; error&#58; syntax error before ‘EdgeValue’
PolyDraw.h&#58;37&#58; error&#58; syntax error before ‘&#125;’ token
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;103&#58; error&#58; ‘&#58;&#58;calloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;106&#58; error&#58; ‘&#58;&#58;free’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;110&#58; error&#58; ‘&#58;&#58;malloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;118&#58; error&#58; ‘&#58;&#58;realloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;103&#58; error&#58; ‘&#58;&#58;calloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;106&#58; error&#58; ‘&#58;&#58;free’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;110&#58; error&#58; ‘&#58;&#58;malloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;118&#58; error&#58; ‘&#58;&#58;realloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;103&#58; error&#58; ‘&#58;&#58;calloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;106&#58; error&#58; ‘&#58;&#58;free’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;110&#58; error&#58; ‘&#58;&#58;malloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;118&#58; error&#58; ‘&#58;&#58;realloc’ has not been declared
./MotoGame.h&#58;101&#58; warning&#58; ‘class vapp&#58;&#58;MotoGameHooks’ has virtual functions but non-virtual destructor
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;103&#58; error&#58; ‘&#58;&#58;calloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;106&#58; error&#58; ‘&#58;&#58;free’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;110&#58; error&#58; ‘&#58;&#58;malloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;118&#58; error&#58; ‘&#58;&#58;realloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;103&#58; error&#58; ‘&#58;&#58;calloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;106&#58; error&#58; ‘&#58;&#58;free’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;110&#58; error&#58; ‘&#58;&#58;malloc’ has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/cstdlib&#58;118&#58; error&#58; ‘&#58;&#58;realloc’ has not been declared
VXml.cpp&#58; In static member function ‘static std&#58;&#58;string vapp&#58;&#58;XML&#58;&#58;str2xmlstr&#40;std&#58;&#58;string&#41;’&#58;
VXml.cpp&#58;82&#58; warning&#58; comparison between signed and unsigned integer expressions
make&#58; *** &#91;Xmoto.elf&#93; Error 1
I know that those BZ2 errors are because I don't have bz2 libriary for psp(do you know if there's one?It's not on svn),but I completely don't understand those about "malloc","free","call of overloaded ‘strcasecmp(char*&, const char [6])’ is ambiguous" and other C related functions.Could you take a look at it?Just in case I've already uploaded my project here:
http://rapidshare.com/files/33133005/src.zip
Thanks in advance.
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Why did you post the exact same thing in a new thread? That's just obnoxious.

Go look at your command line -- that is not linking, you have .cpp files on there. And psp-gcc of course can't handle .cpp files.
gambiting
Posts: 154
Joined: Thu Aug 17, 2006 5:39 pm

Post by gambiting »

jimparis wrote:Why did you post the exact same thing in a new thread? That's just obnoxious.

Go look at your command line -- that is not linking, you have .cpp files on there. And psp-gcc of course can't handle .cpp files.
Becouse people won't look at the old thread - it's more possible that someone will reply my question in a new one.And what's your advice about it?
Post Reply