<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    On 06/21/2012 03:54 PM, Xiaochen Pan wrote:
    <blockquote
      cite="mid:4CEEC0D0-08DF-48F1-9D7A-C296FB5252CB@seas.upenn.edu"
      type="cite">Hello all,
      <div><br>
      </div>
      <div>Here is the command:</div>
      <div><br>
      </div>
      <div>sparc-rtems4.11-g++ -o runner runner.cpp</div>
      <div><br>
      </div>
    </blockquote>
    You are still not building with the arguments to have RTEMS and the<br>
    BSP .h files available or included with your application.<br>
    <br>
    If you use the Makefiles from examples-v2, simply list your C++<br>
    sources as CXXSRCS like this<br>
    <br>
    CXXSRCS = init.cc<br>
    <br>
    <blockquote
      cite="mid:4CEEC0D0-08DF-48F1-9D7A-C296FB5252CB@seas.upenn.edu"
      type="cite">
      <div>Here are the error messages:</div>
      <div>
        <div style="background-color: transparent; font-family: Times; "><b
            id="internal-source-marker_0.6523060537874699"
            style="font-weight: normal; "><span style="font-size: 15px;
              font-family: Arial; color: rgb(0, 0, 0); background-color:
              transparent; font-weight: normal; font-style: normal;
              font-variant: normal; text-decoration: none;
              vertical-align: baseline; white-space: pre-wrap; "><br>
            </span></b></div>
        <div style="background-color: transparent; "><b
            id="internal-source-marker_0.6523060537874699"
            style="font-weight: normal; "><span style="color: rgb(0, 0,
              0); background-color: transparent; font-weight: normal;
              font-style: normal; font-variant: normal; text-decoration:
              none; vertical-align: baseline; white-space: pre-wrap; ">/opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.6.2/../../../../sparc-rtems4.11/bin/ld:
              warning: cannot find entry symbol _start; defaulting to
              00010074</span><br>
            <span style="color: rgb(0, 0, 0); background-color:
              transparent; font-weight: normal; font-style: normal;
              font-variant: normal; text-decoration: none;
              vertical-align: baseline; white-space: pre-wrap; ">/opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.6.2/libstdc++.a(eh_alloc.o):
              In function `__gthread_mutex_destroy':</span><br>
            <span style="color: rgb(0, 0, 0); background-color:
              transparent; font-weight: normal; font-style: normal;
              font-variant: normal; text-decoration: none;
              vertical-align: baseline; white-space: pre-wrap; ">/builddir/build/BUILD/rtems-4.11-sparc-rtems4.11-gcc-4.6.2/build/sparc-rtems4.11/libstdc++-v3/include/sparc-rtems4.11/bits/gthr-default.h:114:
              undefined reference to `rtems_gxx_mutex_destroy'</span><br>
            <span style="color: rgb(0, 0, 0); background-color:
              transparent; font-weight: normal; font-style: normal;
              font-variant: normal; text-decoration: none;
              vertical-align: baseline; white-space: pre-wrap; ">/opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.6.2/libstdc++.a(locale.o):
              In function `__gthread_mutex_destroy':</span><br>
            <span style="color: rgb(0, 0, 0); background-color:
              transparent; font-weight: normal; font-style: normal;
              font-variant: normal; text-decoration: none;
              vertical-align: baseline; white-space: pre-wrap; ">/builddir/build/BUILD/rtems-4.11-sparc-rtems4.11-gcc-4.6.2/build/sparc-rtems4.11/libstdc++-v3/include/sparc-rtems4.11/bits/gthr-default.h:114:
              undefined reference to `rtems_gxx_mutex_destroy'</span><br>
            <span style="color: rgb(0, 0, 0); background-color:
              transparent; font-weight: normal; font-style: normal;
              font-variant: normal; text-decoration: none;
              vertical-align: baseline; white-space: pre-wrap; ">/opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.6.2/libstdc++.a(locale_init.o):
              In function `__gthread_mutex_destroy':</span><br>
            <span style="color: rgb(0, 0, 0); background-color:
              transparent; font-weight: normal; font-style: normal;
              font-variant: normal; text-decoration: none;
              vertical-align: baseline; white-space: pre-wrap; ">/builddir/build/BUILD/rtems-4.11-sparc-rtems4.11-gcc-4.6.2/build/sparc-rtems4.11/libstdc++-v3/include/sparc-rtems4.11/bits/gthr-default.h:114:
              undefined reference to `rtems_gxx_mutex_destroy'</span><br>
            <span style="color: rgb(0, 0, 0); background-color:
              transparent; font-weight: normal; font-style: normal;
              font-variant: normal; text-decoration: none;
              vertical-align: baseline; white-space: pre-wrap; ">collect2:
              ld returned 1 exit status</span></b></div>
      </div>
      <div style="font-family: Times; background-color: transparent; "><b
          id="internal-source-marker_0.6523060537874699"
          style="font-weight: normal; "><span style="font-size: 15px;
            font-family: Arial; color: rgb(0, 0, 0); background-color:
            transparent; font-weight: normal; font-style: normal;
            font-variant: normal; text-decoration: none; vertical-align:
            baseline; white-space: pre-wrap; "><br>
          </span></b></div>
      <div style="background-color: transparent; "><span
          class="Apple-style-span" style="white-space: pre-wrap; ">How
          to fix this problem?</span></div>
      <div style="background-color: transparent; "><span
          class="Apple-style-span" style="white-space: pre-wrap; "><br>
        </span></div>
      <div style="background-color: transparent; "><span
          class="Apple-style-span" style="white-space: pre-wrap; ">regards,</span></div>
      <div style="background-color: transparent; "><span
          class="Apple-style-span" style="white-space: pre-wrap;">xiaochen</span></div>
      <div style="background-color: transparent; "><font
          class="Apple-style-span" face="Arial"><span
            class="Apple-style-span" style="font-size: 15px;
            white-space: pre-wrap;"><br>
          </span></font></div>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Joel Sherrill, Ph.D.             Director of Research&  Development
<a class="moz-txt-link-abbreviated" href="mailto:joel.sherrill@OARcorp.com">joel.sherrill@OARcorp.com</a>        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
    Support Available             (256) 722-9985

</pre>
  </body>
</html>