<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hi Jordan,<br><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">you are right. I have prepended the call to cmake by scan-build as you recommended and now it is working as expected. <br>
<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Many thanks,<br><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Kai<br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Jan 3, 2014 at 6:01 PM, Jordan Rose <span dir="ltr"><<a href="mailto:jordan_rose@apple.com" target="_blank">jordan_rose@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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:<br>
<br>
scan-build cmake<br>
scan-build make<br>
<br>
That may not be the issue here, though. What platform are you using? Does your project contain C++ files?<br>
<br>
Jordan<br>
<div><div class="h5"><br>
<br>
On Dec 5, 2013, at 3:34 , Kai Harries <<a href="mailto:kai.harries@gmail.com">kai.harries@gmail.com</a>> wrote:<br>
<br>
> I have a C++  project with cmake as build-system. When I try to compile it with<br>
><br>
>   'scan-build make'<br>
><br>
> it fails with 'ld returned 1 exit status'. But it works when I use<br>
><br>
>   'scan-build --use-cc=g++ make'<br>
><br>
> What might be causing that scan-build can not determine the right compiler/linker?<br>
> How can I fix it?<br>
><br>
> Kind regards,<br>
><br>
> Kai Harries<br>
</div></div>> _______________________________________________<br>
> cfe-users mailing list<br>
> <a href="mailto:cfe-users@cs.uiuc.edu">cfe-users@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users</a><br>
<br>
</blockquote></div><br></div>