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

$link_objects build order

Started by Vikingo, February 18, 2014, 01:34:24 AM

Previous topic - Next topic

Vikingo

Hi, I have a project (main.c) which depends on other source files (bla.c blabla.c, etc). I'm using SDCC compiler

Everything builds ok but the link command passes my main.rel as the last object to link when the compiler asks for it to be the first parameter.

How can I invert (or decide my myself) how the $link_objects should be built?

Can I just reverse the order somehow from the GUI?

Thanks in adv advance

Alex

stahta01

IIRC, right click on file properties look for the weight setting make it lower; normally I use 0 to get it the first file compiled/linked.

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]

Vikingo