<div dir="ltr"><div>Tried both:<br><br> g++ -std=c++11 -g -Wall -O2 -o foo foo.cc<br>
<br>
and this:<br>
<br>
  g++ -std=c++11 -g -Wall -O2 -c -o foo.o foo.cc<br>
  g++ -std=c++11 -g -Wall -O2 -o foo foo.o<br><br></div>None of the above produce any errors.<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 5, 2015 at 1:20 PM, Jö Fahlke <span dir="ltr"><<a href="mailto:jorrit@jorrit.de" target="_blank">jorrit@jorrit.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Am Thu,  5. Feb 2015, 13:02:59 +0000 schrieb Ganesh Diwan:<br>
<span class="">> Yes, the foo for Hello world program runs fine:<br>
> $ ./foo<br>
> Hello world!<br>
<br>
</span>I don't see anything in the log that explains the failure.  I'll note that<br>
this happens immediately the first time an executable is linked, but linking a<br>
library works fine.<br>
<br>
Maybe this is because the build-system links in a two-stage process.  How<br>
exactly did you compile foo.cc?  Can you try this:<br>
<br>
  g++ -std=c++11 -g -Wall -O2 -o foo foo.cc<br>
<br>
and this:<br>
<br>
  g++ -std=c++11 -g -Wall -O2 -c -o foo.o foo.cc<br>
  g++ -std=c++11 -g -Wall -O2 -o foo foo.o<br>
<br>
and send us the log of the compilation for both?<br>
<br>
If that does not produce any errors, we will need to try all of the options<br>
that the build-system used in turn until we find the one that triggers the<br>
error.<br>
<span class=""><br>
Regards,<br>
Jö.<br>
<br>
--<br>
Jorrit (Jö) Fahlke, Institute for Computational und Applied Mathematics,<br>
University of Münster, Orleans-Ring 10, D-48149 Münster<br>
Tel: <a href="tel:%2B49%20251%2083%2035146" value="+492518335146">+49 251 83 35146</a> Fax: <a href="tel:%2B49%20251%2083%2032729" value="+492518332729">+49 251 83 32729</a><br>
<br>
</span>In the beginning the Universe was created.  This has made a lot of<br>
people very angry and been widely regarded as a bad move.<br>
-- Douglas Adams<br>
</blockquote></div><br></div>