[cfe-users] scan-build: fails to link project
Kai Harries
kai.harries at gmail.com
Fri Jan 3 13:32:23 PST 2014
Hi Jordan,
you are right. I have prepended the call to cmake by scan-build as you
recommended and now it is working as expected.
Many thanks,
Kai
On Fri, Jan 3, 2014 at 6:01 PM, Jordan Rose <jordan_rose at apple.com> wrote:
> Hi, Kai. I haven't tried it, but scan-build usually wants you to use it to
> invoke your build system generator as well. So:
>
> scan-build cmake
> scan-build make
>
> That may not be the issue here, though. What platform are you using? Does
> your project contain C++ files?
>
> Jordan
>
>
> On Dec 5, 2013, at 3:34 , Kai Harries <kai.harries at gmail.com> wrote:
>
> > I have a C++ project with cmake as build-system. When I try to compile
> it with
> >
> > 'scan-build make'
> >
> > it fails with 'ld returned 1 exit status'. But it works when I use
> >
> > 'scan-build --use-cc=g++ make'
> >
> > What might be causing that scan-build can not determine the right
> compiler/linker?
> > How can I fix it?
> >
> > Kind regards,
> >
> > Kai Harries
> > _______________________________________________
> > cfe-users mailing list
> > cfe-users at cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20140103/16cbd97a/attachment.html>
More information about the cfe-users
mailing list