<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#CCFFFF" text="#000000">
    Thanks for the response.<br>
    <br>
    After I upgraded from dmd 2.063 to 2.071, it worked.  I'm not sure
    what changed from one version to the next, but that seems to have
    been the problem.<br>
    <br>
    Thanks,<br>
    Chris<br>
    <br>
    <div class="moz-cite-prefix">On 05/31/16 12:59, Andrei Alexandrescu
      wrote:<br>
    </div>
    <blockquote cite="mid:574DC2DB.9040703@erdani.com" type="cite">No
      idea, I just pasted your code in
      <a class="moz-txt-link-freetext" href="https://dpaste.dzfl.pl/cb18d29d187c">https://dpaste.dzfl.pl/cb18d29d187c</a> and it works fine with dmd and
      ldc.
      <br>
      <br>
      A few simple things you could try at this point:
      <br>
      <br>
      * Search the stdlib source code for matchAll. You should find it.
      <br>
      <br>
      * Try to qualify the name: std.regex.matchAll.
      <br>
      <br>
      * Review your command line. It mentions "re.d" twice which is
      suspicious.
      <br>
      <br>
      <br>
      Andrei
      <br>
      <br>
      On 05/29/2016 01:59 PM, Chris Moller via phobos wrote:
      <br>
      <blockquote type="cite">Starting with the usual turn-off
        disclaimer, "I'm new to D..." Sorry,
        <br>
        but I'm in hair-tearing mode.
        <br>
        <br>
        I'm trying to compile part of the sample code from
        <br>
        dlang.org/phobos/std_regex.html:
        <br>
        <br>
        import std.regex;
        <br>
        import std.stdio;
        <br>
        <br>
        void main()
        <br>
        {
        <br>
           // Print out all possible dd/mm/yy(yy) dates found in user
        input.
        <br>
           auto r =
        <br>
        regex(r"\b[0-9][0-9]?/[0-9][0-9]?/[0-9][0-9](?:[0-9][0-9])?\b");
        <br>
           foreach(line; stdin.byLine)
        <br>
           {
        <br>
             // matchAll() returns a range that can be iterated
        <br>
             // to get all subsequent matches.
        <br>
             foreach(c; matchAll(line, r))
        <br>
               writeln(c.hit);
        <br>
            }
        <br>
        }
        <br>
        <br>
        What I'm getting is:
        <br>
        <br>
        [0] (moller@qcore) >ldc2 -c re.d re.d
        <br>
        (13): Error: undefined identifier matchAll
        <br>
        <br>
        [1] (moller@qcore) >ldc2 --version
        <br>
        LDC - the LLVM D compiler (0.12.0):
        <br>
           based on DMD v2.063.2 and LLVM 3.3
        <br>
           Default target: x86_64-redhat-linux-gnu
        <br>
           Host CPU: core2
        <br>
        <a class="moz-txt-link-freetext" href="http://dlang.org">http://dlang.org</a> - <a class="moz-txt-link-freetext" href="http://wiki.dlang.org/LDC">http://wiki.dlang.org/LDC</a>
        <br>
           Registered Targets:
        <br>
             aarch64 - AArch64
        <br>
             arm - ARM
        <br>
             cpp - C++ backend
        <br>
             nvptx - NVIDIA PTX 32-bit
        <br>
             nvptx64 - NVIDIA PTX 64-bit
        <br>
             ppc32 - PowerPC 32
        <br>
             ppc64 - PowerPC 64
        <br>
             r600 - AMD GPUs HD2XXX-HD6XXX
        <br>
             systemz - SystemZ
        <br>
             thumb - Thumb
        <br>
             x86 - 32-bit X86: Pentium-Pro and above
        <br>
             x86-64 - 64-bit X86: EM64T and AMD64
        <br>
        <br>
        [0] (moller@qcore) >uname -a
        <br>
        Linux qcore.mollernet.net 3.14.4-200.fc20.x86_64 #1 SMP Tue May
        13
        <br>
        13:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
        <br>
        <br>
         From /etc/dmd.conf:
        <br>
        DFLAGS=-I/usr/include/dmd/phobos
        -I/usr/include/dmd/druntime/import
        <br>
        -L-L/usr/lib64 -L--export-dynamic
        <br>
        <br>
        <br>
        So, what am I doing wrong?
        <br>
        <br>
        Thanks,
        <br>
        Chris Moller
        <br>
        <br>
        <br>
        _______________________________________________
        <br>
        phobos mailing list
        <br>
        <a class="moz-txt-link-abbreviated" href="mailto:phobos@puremagic.com">phobos@puremagic.com</a>
        <br>
        <a class="moz-txt-link-freetext" href="http://lists.puremagic.com/mailman/listinfo/phobos">http://lists.puremagic.com/mailman/listinfo/phobos</a>
        <br>
        <br>
      </blockquote>
      <br>
      <br>
    </blockquote>
    <br>
  </body>
</html>