If you are trying to add a library file or such, you should use the linker settings to accomplish that.
I am not
trying, C::B allows me to do it. And yes, I know it and now I'm using this method.
Or else AGAIN what is your intention in trying to add an '.o' file to a project?
Well, I'll try to explain it clearly.
First, in the
Project build options→
Linker settings file list is titled
Link libraries. From this it is not clear (at least to me) that here you can also add the object files or compiled windows resource files.
Secondly, in the
Properties→
Build for each file, you can uncheck the
Compile file leaving checked only
Link file.
Hence, I concluded that the project may contain files that do not require compiling, but used when linking. I do not know how it is for you, but for me it is primarily the files
.o,
.a and
.res.
Thirdly, about why I add the
.o file to the project. It is smaller than the entire lib. It does not require compiling when building the project.
And finally, what would you advise if I have added to the project
.res file, and not an
.o file? Since when it is added to the project, the symptoms are the same.