[cfe-users] scan-build: fails to link project
Jordan Rose
jordan_rose at apple.com
Fri Jan 3 09:01:35 PST 2014
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
More information about the cfe-users
mailing list