Code::Blocks + PSPDEV

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

Moderators: cheriff, TyRaNiD

Post Reply
IronAvatar
Posts: 23
Joined: Sat Nov 25, 2006 5:53 am

Code::Blocks + PSPDEV

Post by IronAvatar »

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!
IronAvatar
Posts: 23
Joined: Sat Nov 25, 2006 5:53 am

Post by IronAvatar »

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).

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
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 ;)
User avatar
dot_blank
Posts: 498
Joined: Wed Sep 28, 2005 8:47 am
Location: Brasil

Post by dot_blank »

why
D:\sdk\psp\pspdev\psp\lib\libg.a
twice?
10011011 00101010 11010111 10001001 10111010
IronAvatar
Posts: 23
Joined: Sat Nov 25, 2006 5:53 am

Post by IronAvatar »

dot_blank wrote:why
D:\sdk\psp\pspdev\psp\lib\libg.a
twice?
Because it was quite late at night when I finaly got the program to link, and I accidentaly added it twice :)
Post Reply