User forums > Using Code::Blocks
adding object files to static lib project
dfatcb:
code::blocks doesn't seem to add the .o files I add to a project to the resulting library .a file. Is there anyway to make it do that? I'm using Code::Blocks in Linux, all the other IDEs I used in DOS/Windows have always added any .obj files added to the project the the resulting .lib created.
TIA!!
oBFusCATed:
What is the type of your project?
If this is not a static library then you won't get a lib (.a)!
dfatcb:
it's a static lib. I get the .a file for all the .c and .cpp source, just doesn't seem to know to add the .o files?
oBFusCATed:
No .c or .cpp file is added to the .a files.
They are first compiled to .o files and the .o files are added to the lib (.a).
Is this step that is broken or do you have external .o files which you want to be added to the lib?
dfatcb:
Yes, of course, external .o files added to the project that want to be added to the .a lib when built.
Navigation
[0] Message Index
[#] Next page
Go to full version