if(ObjectFile *obj = dynamic_cast<ObjectFile *>(*i))
objs.push_back(obj);
else
- throw invalid_argument("GnuLinker::create_target");
+ throw invalid_argument("GnuArchiver::create_target");
}
const Component &comp = objs.front()->get_component();
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");