News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Can one specify object link order?

Started by hcye, July 18, 2007, 02:39:24 AM

Previous topic - Next topic

hcye

Is there anyway to specify the link order of object files?

I recently had to edit my .cbp file in order to make two files link in certain order. Is there a kosher way to do this than editing the file manually? Thanks!

Huanchun

stahta01

If you mean compile in a certain order then right click on file and choose "Properties" Select "build" Tab and adjust "Priority weight" as needed. I have no idea if this fixes any thing related to link order.

Tim S
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

hcye

There is a checkbox to apply the weight to linker and it actually works!

This is a very useful feature, especially for embedded software where sometimes one needs to control the order of objects. Thanks!