Page 1 of 1

Linking an object file

Posted: Mon Sep 17, 2012 10:02 am
by Fred
How can I tell CodeLite to link an object file to my project, which was created in a prebuild step?

I have a unicode rc file containing a stringtable with Russian strings. As windres cannot process unicode rc files, I created a res file using another tool. Then used windres to convert the rusmsgs.res file to an object file rusmsgs.rc.o.
Then I tried several ways (project tree, settings) to put it into my CodeLite project, but it was ignored.
I see, that CodeLite uses a response file <projectname>.txt, where the object files of my project incl. the other .rc.o files are listed, but not my rusmsgs.rc.o file.
I'll make a suggestion in the Developer forum for this topic.

Thanks,
Fred

Re: Linking an object file

Posted: Mon Sep 17, 2012 10:11 am
by eranif
"Project Settings -> Linker -> Options"
and add your object name there (make sure you place semi-colon after the object name)

something like:

Code: Select all

myobj.o;<other options here>
Eran

Re: Linking an object file

Posted: Mon Sep 17, 2012 10:39 am
by Fred
Thank you for your quick reply, it is linked now!