Help with linking order

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

Moderators: cheriff, TyRaNiD

Post Reply
sakya
Posts: 190
Joined: Fri Apr 28, 2006 5:48 pm
Contact:

Help with linking order

Post by sakya »

Hi! :)

I'm having some problems with linking order and cannot find a solution.

I have this libs linked in the makefile:

Code: Select all

LIBS = -lFLAC -lmad -lvorbisidec -lm \
       -lpspgu -lpspgum -lpspaudio -lpsppower \
       -lpsphprm -lpspusb -lpspusbstor -lpspaudio -lpspaudiocodec -lpspkubridge
I need to add -lpsputility but then I get the "Error, could not fixup imports, stubs out of order" error.
I tried to put it in different positions.

How can I know the correct order?
Can someone please help me? :)
Many thanks.

Ciaooo
Sakya
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

Is that for an uncommitted change? A current checkout compiles without that lib just fine.
sakya
Posts: 190
Joined: Fri Apr 28, 2006 5:48 pm
Contact:

Post by sakya »

Hi! :)
J.F. wrote:Is that for an uncommitted change?
Yes. ;)
I'd like to add Sony OSK (and it needs psputility).

EDIT: I solved the linking error.
-lpsputility was just in the library list (is it added automatically for some dependencies?).

Ciaooo
Sakya
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

The build.mak file seems to add most of the sdk libs to the list normally. I'm not sure what criteria it uses as I've never looked at it closely.
Post Reply