<div dir="ltr">I have a C++  project with cmake as build-system. When I try to compile it with<div><br><div>  'scan-build make'</div><div><br></div><div>it fails with 'ld returned 1 exit status'. But it works when I use</div>
<div><br></div><div>  'scan-build --use-cc=g++ make' </div><div><br></div><div>What might be causing that scan-build can not determine the right compiler/linker?<br></div><div>How can I fix it?</div><div><br></div>
<div>Kind regards,</div><div><br></div><div>Kai Harries</div></div></div>