Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: hckr83 on November 05, 2005, 06:33:31 am

Title: Adding objects to a list
Post by: hckr83 on November 05, 2005, 06:33:31 am
I am needing to add an external object file to the list, i would compile it in codeblocks but its asm so i cant, i have looked and tried just about everything i can think of to add a simple .o file to the linker object list
can someone please give me a workaround or a way to do this
Title: Re: Adding objects to a list
Post by: Urxae on November 05, 2005, 08:33:27 am
Project menu (or right-click on project name in the treeview), select Build options. Go to the target you want to add the object files, linker tab, and put their names in the "Other linker options" text area (one per line).

EDIT: Or just use Yiannis' better method below :roll:.
Title: Re: Adding objects to a list
Post by: mandrav on November 05, 2005, 10:04:42 am
Add your object file in the project, right-click on it in the project tree, select "Properties" and click "Link".
Title: Re: Adding objects to a list
Post by: rickg22 on November 06, 2005, 01:38:36 am
is that a new feature?
Title: Re: Adding objects to a list
Post by: mandrav on November 06, 2005, 10:16:33 am
is that a new feature?

No, it's been there forever...