User forums > Using Code::Blocks

building a static lib: problems with ar

<< < (2/2)

stahta01:
What version of Code::Blocks are you using?
RC2 or Nightly Build?
If Nightly Build, what is the svn number?
If RC2, I suggest upgrading to Nightly Build.

The problem appears to be an Code::Blocks issue, but I don't see it with the current nightly build.

What OS are you running? Win9X, WinXP, Linux and others?

Tim S

TDragon:
I believe C::B should be using something like "ar -r -s libTestlib.a obj/Release/testlib.o". Check in the advanced compiler options (global compiler settings, "other settings" tab, "Advanced options" button) to make sure that the "Link object files to static library" command is set appropriately -- on my (WinXP) machine it's "$lib_linker -r -s $static_output $link_objects".

Navigation

[0] Message Index

[*] Previous page

Go to full version