<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    LDFLAGS += -L/usr/local/lib -lspeex -lm<br>
    <br>
    <br>
    On 12-03-06 01:56 PM, Mashal al-shboul wrote:
    <blockquote
      cite="mid:1331060171.8097.YahooMailNeo@web65415.mail.ac4.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff; font-family:times
        new roman, new york, times, serif;font-size:14pt">
        <div>Hi All,</div>
        <div>i have configured speex1.2rc1 for xscale-elf (ARM
          architecture) ,then executed MAKE and MAKE INSTALL. so, i
          obtained libspeex.a in the /usr/local/lib with libogg.a
          compiled as well. but i when i link the library to my program
          (by adding LDFLAGS += -lspeex -lm ), and try to compile, i get
          this error:</div>
        <div><span style="font-weight: bold;">/usr/lib/gcc/xscale-elf/3.4.3/../../../../xscale-elf/bin/ld:
            cannot find -lspeex</span><br style="font-weight: bold;">
          <span style="font-weight: bold;">collect2: ld returned 1 exit
            status</span><br style="font-weight: bold;">
          <span style="font-weight: bold;">make: *** [exe0] Error 1</span></div>
        <div><br style="font-weight: bold;">
        </div>
        <div>i passed&nbsp; ./configure options as : <br>
          ./configure --host=xscale-elf</div>
        <div><br>
        </div>
        <div>it's likely that the linker can't see libspeex.a , and i
          also tried the line&nbsp; <span style="font-weight: bold;">LDFLAGS
            += /usr/local/lib/libspeex.a -lm</span> <span><span><span>in
                Makefile but got another error(also in linking):</span></span></span></div>
        <div><span style="font-weight: bold;"><span style="font-weight:
              bold;"><span style="font-weight: bold;"><br>
              </span></span></span></div>
        <div><span style="font-weight: bold;"><span style="font-weight:
              bold;"><span style="font-weight: bold;">/tmp/ccvi7Pns.o(.text+0x179c):
                In function `main':<br>
                : undefined reference to `BlinkC$speex_bits_init'<br>
                collect2: ld returned 1 exit status<br>
                make: *** [exe0] Error 1</span></span></span></div>
        <div><br>
          <span style="font-weight: bold;"><span style="font-weight:
              bold;"><span style="font-weight: bold;"></span></span></span></div>
        <div><span style="font-weight: bold;"><span style="font-weight:
              bold;"><span style="font-weight: bold;">WOULD YOU PLEASE
                HELP ME IN THIS PROBLEM, HOW CAN I DEFINE libspeex.a
                CORRECTLY TO THE LINKER?</span></span></span><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Speex-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Speex-dev@xiph.org">Speex-dev@xiph.org</a>
<a class="moz-txt-link-freetext" href="http://lists.xiph.org/mailman/listinfo/speex-dev">http://lists.xiph.org/mailman/listinfo/speex-dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>