Task *GnuArchiver::run(const Target &target) const
{
const StaticLibrary &lib = dynamic_cast<const StaticLibrary &>(target);
- const Component &comp = lib.get_component();
+ const Component &comp = *lib.get_component();
vector<string> argv;
argv.push_back("ar");