Hey guys,
I've been setting up Code::Blocks for use with the PSPDEV sdk. I've setup the compilers, linkers and even managed to fix a niggling problem with the static library archiver.
But now I'm running into issuse when linking an elf. I can't for the life of me figure out which of the libraries MUST link in before I need to worry about GE, display, VFPU and all the other groovy hardware libraries.
So...my question is; what libraries do I need to support the most basic executeable that has basic io and debugging services? Despite searching through the sdk make file and just blindly adding libs, I still have a lot of link errors.
thanks in advance!
Code::Blocks + PSPDEV
-
- Posts: 23
- Joined: Sat Nov 25, 2006 5:53 am
I've actually solved this myself by playing around with the link order. Incase anybody is interested in using Code::Blocks instead of Dev-C++, then it's important to get the link order correct for the most basic of apps that use the VFPU, GU and GE.
The order of my libs is currently like this (if there's anything there that is redundant, then somebody please let me know).
If anybody wants me to, I'll post more complete instructions on using Codeblocks plus a Win32 build of the Toolchain that runs using the Cygwin dll's.
But really, it's pretty straight forward stuff and you're all pretty smart people, do you won't need me to tell you what to do ;)
The order of my libs is currently like this (if there's anything there that is redundant, then somebody please let me know).
Code: Select all
D:\sdk\psp\pspdev\psp\lib\libg.a
D:\sdk\psp\pspdev\psp\lib\libm.a
D:\sdk\psp\pspdev\psp\lib\libstdc++.a
D:\sdk\psp\pspdev\psp\lib\libsupc++.a
D:\sdk\psp\pspdev\psp\lib\libg.a
D:\sdk\psp\pspdev\psp\sdk\lib\libpsprtc.a
D:\sdk\psp\pspdev\psp\sdk\lib\libpspuser.a
D:\sdk\psp\pspdev\psp\sdk\lib\libpsputility.a
D:\sdk\psp\pspdev\psp\sdk\lib\libpspdebug.a
D:\sdk\psp\pspdev\psp\sdk\lib\libpsplibc.a
D:\sdk\psp\pspdev\psp\sdk\lib\libpspgum.a
D:\sdk\psp\pspdev\psp\sdk\lib\libpspvfpu.a
D:\sdk\psp\pspdev\psp\sdk\lib\libpspgu.a
D:\sdk\psp\pspdev\psp\sdk\lib\libpspge.a
D:\sdk\psp\pspdev\psp\sdk\lib\libpspdisplay_driver.a
D:\sdk\psp\pspdev\psp\sdk\lib\libpspdisplay.a
D:\sdk\psp\pspdev\psp\sdk\lib\libpspge_driver.a
D:\sdk\psp\pspdev\psp\sdk\lib\libpspsdk.a
D:\sdk\psp\pspdev\psp\sdk\lib\libpsppower.a
D:\sdk\psp\pspdev\psp\sdk\lib\libpsppower_driver.a
D:\sdk\psp\pspdev\psp\sdk\lib\libpspgum_vfpu.a
D:\sdk\psp\pspdev\psp\sdk\lib\libpspkernel.a
But really, it's pretty straight forward stuff and you're all pretty smart people, do you won't need me to tell you what to do ;)
-
- Posts: 23
- Joined: Sat Nov 25, 2006 5:53 am