Linking an object file

General questions regarding the usage of CodeLite
Fred
CodeLite Enthusiast
Posts: 43
Joined: Mon Jul 02, 2012 12:53 pm
Genuine User: Yes
IDE Question: C++
Contact:

Linking an object file

Post 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
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Linking an object file

Post 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
Make sure you have read the HOW TO POST thread
Fred
CodeLite Enthusiast
Posts: 43
Joined: Mon Jul 02, 2012 12:53 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Linking an object file

Post by Fred »

Thank you for your quick reply, it is linked now!
Post Reply