<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>My latest compile result:</p>
    <p>Undefined symbols for architecture x86_64:<br>
        "llvm::itaniumDemangle(char const*, char*, unsigned long*,
      int*)", referenced from:<br>
            llvm::sys::PrintStackTrace(llvm::raw_ostream&) in
      libLLVMSupport.a(Signals.cpp.o)<br>
        "_del_curterm", referenced from:<br>
            llvm::sys::Process::FileDescriptorHasColors(int) in
      libLLVMSupport.a(Process.cpp.o)<br>
        "_set_curterm", referenced from:<br>
            llvm::sys::Process::FileDescriptorHasColors(int) in
      libLLVMSupport.a(Process.cpp.o)<br>
        "_setupterm", referenced from:<br>
            llvm::sys::Process::FileDescriptorHasColors(int) in
      libLLVMSupport.a(Process.cpp.o)<br>
        "_tigetnum", referenced from:<br>
            llvm::sys::Process::FileDescriptorHasColors(int) in
      libLLVMSupport.a(Process.cpp.o)<br>
      ld: symbol(s) not found for architecture x86_64<br>
    </p>
    <p><br>
    </p>
    <p>Thanks for all the help</p>
    <p>Paul</p>
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 2016-12-23 9:43 PM, Mehdi Amini
      wrote:<br>
    </div>
    <blockquote
      cite="mid:2D50CD87-D002-46E6-9630-6FCBF31D4351@apple.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      Remove the .a
      <div class=""><br class="">
      </div>
      <div class="">(And keep discussions on the mailing list).</div>
      <div class=""><br class="">
      </div>
      <div class="">— </div>
      <div class="">Mehdi</div>
      <div class=""><br class="">
        <div>
          <blockquote type="cite" class="">
            <div class="">On Dec 23, 2016, at 5:14 PM, icloud <<a
                moz-do-not-send="true"
                href="mailto:pesurette@icloud.com" class="">pesurette@icloud.com</a>>
              wrote:</div>
            <br class="Apple-interchange-newline">
            <div class=""><span style="font-family: Helvetica;
                font-size: 12px; font-style: normal; font-variant-caps:
                normal; font-weight: normal; letter-spacing: normal;
                orphans: auto; text-align: start; text-indent: 0px;
                text-transform: none; white-space: normal; widows: auto;
                word-spacing: 0px; -webkit-text-stroke-width: 0px;
                float: none; display: inline !important;" class="">This
                is the complete command line for ld:</span><br
                style="font-family: Helvetica; font-size: 12px;
                font-style: normal; font-variant-caps: normal;
                font-weight: normal; letter-spacing: normal; orphans:
                auto; text-align: start; text-indent: 0px;
                text-transform: none; white-space: normal; widows: auto;
                word-spacing: 0px; -webkit-text-stroke-width: 0px;"
                class="">
              <br style="font-family: Helvetica; font-size: 12px;
                font-style: normal; font-variant-caps: normal;
                font-weight: normal; letter-spacing: normal; orphans:
                auto; text-align: start; text-indent: 0px;
                text-transform: none; white-space: normal; widows: auto;
                word-spacing: 0px; -webkit-text-stroke-width: 0px;"
                class="">
              <span style="font-family: Helvetica; font-size: 12px;
                font-style: normal; font-variant-caps: normal;
                font-weight: normal; letter-spacing: normal; orphans:
                auto; text-align: start; text-indent: 0px;
                text-transform: none; white-space: normal; widows: auto;
                word-spacing: 0px; -webkit-text-stroke-width: 0px;
                float: none; display: inline !important;" class="">"/usr/bin/ld"
                -demangle -lto_library /usr/local/lib/libLTO.dylib
                -no_deduplicate -dynamic -arch x86_64
                -macosx_version_min 10.12.0 -o test -L/usr/local/lib
                -lc++ -lLLVMSupport.a
                /var/folders/nz/0n84ymfx40z5jr0mk9b58q240000gn/T/main-72e08e.o
                -lSystem
                /usr/local/bin/../lib/clang/4.0.0/lib/darwin/libclang_rt.osx.a</span><br
                style="font-family: Helvetica; font-size: 12px;
                font-style: normal; font-variant-caps: normal;
                font-weight: normal; letter-spacing: normal; orphans:
                auto; text-align: start; text-indent: 0px;
                text-transform: none; white-space: normal; widows: auto;
                word-spacing: 0px; -webkit-text-stroke-width: 0px;"
                class="">
              <span style="font-family: Helvetica; font-size: 12px;
                font-style: normal; font-variant-caps: normal;
                font-weight: normal; letter-spacing: normal; orphans:
                auto; text-align: start; text-indent: 0px;
                text-transform: none; white-space: normal; widows: auto;
                word-spacing: 0px; -webkit-text-stroke-width: 0px;
                float: none; display: inline !important;" class="">ld:
                library not found for -lLLVMSupport.a</span><br
                style="font-family: Helvetica; font-size: 12px;
                font-style: normal; font-variant-caps: normal;
                font-weight: normal; letter-spacing: normal; orphans:
                auto; text-align: start; text-indent: 0px;
                text-transform: none; white-space: normal; widows: auto;
                word-spacing: 0px; -webkit-text-stroke-width: 0px;"
                class="">
              <br style="font-family: Helvetica; font-size: 12px;
                font-style: normal; font-variant-caps: normal;
                font-weight: normal; letter-spacing: normal; orphans:
                auto; text-align: start; text-indent: 0px;
                text-transform: none; white-space: normal; widows: auto;
                word-spacing: 0px; -webkit-text-stroke-width: 0px;"
                class="">
              <span style="font-family: Helvetica; font-size: 12px;
                font-style: normal; font-variant-caps: normal;
                font-weight: normal; letter-spacing: normal; orphans:
                auto; text-align: start; text-indent: 0px;
                text-transform: none; white-space: normal; widows: auto;
                word-spacing: 0px; -webkit-text-stroke-width: 0px;
                float: none; display: inline !important;" class="">The
                library is in usr/local/lib. I have even added
                -L/usr/local/lib to the command line but the error
                persists.</span><br style="font-family: Helvetica;
                font-size: 12px; font-style: normal; font-variant-caps:
                normal; font-weight: normal; letter-spacing: normal;
                orphans: auto; text-align: start; text-indent: 0px;
                text-transform: none; white-space: normal; widows: auto;
                word-spacing: 0px; -webkit-text-stroke-width: 0px;"
                class="">
              <br style="font-family: Helvetica; font-size: 12px;
                font-style: normal; font-variant-caps: normal;
                font-weight: normal; letter-spacing: normal; orphans:
                auto; text-align: start; text-indent: 0px;
                text-transform: none; white-space: normal; widows: auto;
                word-spacing: 0px; -webkit-text-stroke-width: 0px;"
                class="">
              <span style="font-family: Helvetica; font-size: 12px;
                font-style: normal; font-variant-caps: normal;
                font-weight: normal; letter-spacing: normal; orphans:
                auto; text-align: start; text-indent: 0px;
                text-transform: none; white-space: normal; widows: auto;
                word-spacing: 0px; -webkit-text-stroke-width: 0px;
                float: none; display: inline !important;" class="">Thanks
                for your efforts</span><br style="font-family:
                Helvetica; font-size: 12px; font-style: normal;
                font-variant-caps: normal; font-weight: normal;
                letter-spacing: normal; orphans: auto; text-align:
                start; text-indent: 0px; text-transform: none;
                white-space: normal; widows: auto; word-spacing: 0px;
                -webkit-text-stroke-width: 0px;" class="">
              <br style="font-family: Helvetica; font-size: 12px;
                font-style: normal; font-variant-caps: normal;
                font-weight: normal; letter-spacing: normal; orphans:
                auto; text-align: start; text-indent: 0px;
                text-transform: none; white-space: normal; widows: auto;
                word-spacing: 0px; -webkit-text-stroke-width: 0px;"
                class="">
              <span style="font-family: Helvetica; font-size: 12px;
                font-style: normal; font-variant-caps: normal;
                font-weight: normal; letter-spacing: normal; orphans:
                auto; text-align: start; text-indent: 0px;
                text-transform: none; white-space: normal; widows: auto;
                word-spacing: 0px; -webkit-text-stroke-width: 0px;
                float: none; display: inline !important;" class="">Paul</span><br
                style="font-family: Helvetica; font-size: 12px;
                font-style: normal; font-variant-caps: normal;
                font-weight: normal; letter-spacing: normal; orphans:
                auto; text-align: start; text-indent: 0px;
                text-transform: none; white-space: normal; widows: auto;
                word-spacing: 0px; -webkit-text-stroke-width: 0px;"
                class="">
              <br style="font-family: Helvetica; font-size: 12px;
                font-style: normal; font-variant-caps: normal;
                font-weight: normal; letter-spacing: normal; orphans:
                auto; text-align: start; text-indent: 0px;
                text-transform: none; white-space: normal; widows: auto;
                word-spacing: 0px; -webkit-text-stroke-width: 0px;"
                class="">
              <br style="font-family: Helvetica; font-size: 12px;
                font-style: normal; font-variant-caps: normal;
                font-weight: normal; letter-spacing: normal; orphans:
                auto; text-align: start; text-indent: 0px;
                text-transform: none; white-space: normal; widows: auto;
                word-spacing: 0px; -webkit-text-stroke-width: 0px;"
                class="">
              <br style="font-family: Helvetica; font-size: 12px;
                font-style: normal; font-variant-caps: normal;
                font-weight: normal; letter-spacing: normal; orphans:
                auto; text-align: start; text-indent: 0px;
                text-transform: none; white-space: normal; widows: auto;
                word-spacing: 0px; -webkit-text-stroke-width: 0px;"
                class="">
              <span style="font-family: Helvetica; font-size: 12px;
                font-style: normal; font-variant-caps: normal;
                font-weight: normal; letter-spacing: normal; orphans:
                auto; text-align: start; text-indent: 0px;
                text-transform: none; white-space: normal; widows: auto;
                word-spacing: 0px; -webkit-text-stroke-width: 0px;
                float: none; display: inline !important;" class="">On
                2016-12-23 9:05 PM, Mehdi Amini wrote:</span><br
                style="font-family: Helvetica; font-size: 12px;
                font-style: normal; font-variant-caps: normal;
                font-weight: normal; letter-spacing: normal; orphans:
                auto; text-align: start; text-indent: 0px;
                text-transform: none; white-space: normal; widows: auto;
                word-spacing: 0px; -webkit-text-stroke-width: 0px;"
                class="">
              <blockquote type="cite" style="font-family: Helvetica;
                font-size: 12px; font-style: normal; font-variant-caps:
                normal; font-weight: normal; letter-spacing: normal;
                orphans: auto; text-align: start; text-indent: 0px;
                text-transform: none; white-space: normal; widows: auto;
                word-spacing: 0px; -webkit-text-size-adjust: auto;
                -webkit-text-stroke-width: 0px;" class="">What does this
                print:  nm libLLVMSupport.a | grep ABIBreaking<br
                  class="">
                <br class="">
                —<br class="">
                Mehdi<br class="">
                <br class="">
                <blockquote type="cite" class="">On Dec 23, 2016, at
                  5:03 PM, icloud <<a moz-do-not-send="true"
                    href="mailto:pesurette@icloud.com" class="">pesurette@icloud.com</a>>
                  wrote:<br class="">
                  <br class="">
                  Thanks Mehdi,<br class="">
                  <br class="">
                  This gets me much closer to success :)<br class="">
                  <br class="">
                  However I am still getting 1 unresolved symbol:
                  llvm::DisableABIBreakingChecks<br class="">
                  <br class="">
                  Any further thoughts?<br class="">
                  <br class="">
                  <br class="">
                  Thanks again for your help<br class="">
                  <br class="">
                  Paul<br class="">
                  <br class="">
                  <br class="">
                  On 2016-12-23 8:44 PM, Mehdi Amini wrote:<br class="">
                  <blockquote type="cite" class="">You need to link to
                    libLLVMSupport.a.<br class="">
                    <br class="">
                    —<br class="">
                    Mehdi<br class="">
                    <br class="">
                    <blockquote type="cite" class="">On Dec 23, 2016, at
                      2:16 PM, icloud via cfe-dev <<a
                        moz-do-not-send="true"
                        href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a>>
                      wrote:<br class="">
                      <br class="">
                      Thanks Nathan.<br class="">
                      <br class="">
                      After adding -stdlib=libc++ I get:<br class="">
                      <br class="">
                      Pauls-iMac:build paul$ clang-4.0 -std=c++11
                      -stdlib=libc++ -v ../src/main.cpp<br class="">
                      clang version 4.0.0 (<a moz-do-not-send="true"
                        href="https://github.com/llvm-mirror/clang.git"
                        class="">https://github.com/llvm-mirror/clang.git</a>
                      d018ab0a692bb12b9b88a24555354d81cdb779dc) (<a
                        moz-do-not-send="true"
                        href="https://github.com/llvm-mirror/llvm.git"
                        class="">https://github.com/llvm-mirror/llvm.git</a>
                      4b0e4b53984a098911fd68282e1b6e87e4c77f48)<br
                        class="">
                      Target: x86_64-apple-darwin16.1.0<br class="">
                      Thread model: posix<br class="">
                      InstalledDir: /usr/local/bin<br class="">
                      "/usr/local/bin/clang-4.0" -cc1 -triple
                      x86_64-apple-macosx10.12.0
                      -Wdeprecated-objc-isa-usage
                      -Werror=deprecated-objc-isa-usage -emit-obj
                      -mrelax-all -disable-free -disable-llvm-verifier
                      -discard-value-names -main-file-name main.cpp
                      -mrelocation-model pic -pic-level 2 -mthread-model
                      posix -mdisable-fp-elim -masm-verbose
                      -munwind-tables -target-cpu penryn
                      -target-linker-version 274.1 -v -dwarf-column-info
                      -debugger-tuning=lldb -resource-dir
                      /usr/local/bin/../lib/clang/4.0.0 -stdlib=libc++
                      -std=c++11 -fdeprecated-macro
                      -fdebug-compilation-dir
                      /Users/paul/Temp/test/build -ferror-limit 19
                      -fmessage-length 187 -stack-protector 1 -fblocks
                      -fobjc-runtime=macosx-10.12.0
                      -fencode-extended-block-signature -fcxx-exceptions
                      -fexceptions -fmax-type-align=16
                      -fdiagnostics-show-option -fcolor-diagnostics -o
                      /var/folders/nz/0n84ymfx40z5jr0mk9b58q240000gn/T/main-315802.o
                      -x c++ ../src/main.cpp<br class="">
                      clang -cc1 version 4.0.0 based upon LLVM 4.0.0svn
                      default target x86_64-apple-darwin16.1.0<br
                        class="">
                      ignoring nonexistent directory
                      "/usr/include/c++/v1"<br class="">
                      #include "..." search starts here:<br class="">
                      #include <...> search starts here:<br
                        class="">
                      /usr/local/bin/../include/c++/v1<br class="">
                      /usr/local/include<br class="">
                      /usr/local/bin/../lib/clang/4.0.0/include<br
                        class="">
                      /usr/include<br class="">
                      /System/Library/Frameworks (framework directory)<br
                        class="">
                      /Library/Frameworks (framework directory)<br
                        class="">
                      End of search list.<br class="">
                      "/usr/bin/ld" -demangle -lto_library
                      /usr/local/lib/libLTO.dylib -no_deduplicate
                      -dynamic -arch x86_64 -macosx_version_min 10.12.0
                      -o a.out
                      /var/folders/nz/0n84ymfx40z5jr0mk9b58q240000gn/T/main-315802.o
                      -lSystem
                      /usr/local/bin/../lib/clang/4.0.0/lib/darwin/libclang_rt.osx.a<br
                        class="">
                      Undefined symbols for architecture x86_64:<br
                        class="">
                       "llvm::DisableABIBreakingChecks", referenced
                      from:<br class="">
                           llvm::VerifyDisableABIBreakingChecks in
                      main-315802.o<br class="">
                      ld: symbol(s) not found for architecture x86_64<br
                        class="">
                      clang-4.0: error: linker command failed with exit
                      code 1 (use -v to see invocation)<br class="">
                      <br class="">
                      <br class="">
                      Thanks again<br class="">
                      <br class="">
                      <br class="">
                      <br class="">
                      On 2016-12-23 6:10 PM, Nathan Froyd wrote:<br
                        class="">
                      <blockquote type="cite" class="">You may want to
                        try adding -stdlib=libc++ to your command line.<br
                          class="">
                        <br class="">
                        -Nathan<br class="">
                        <br class="">
                        On Fri, Dec 23, 2016 at 4:57 PM, paul via
                        cfe-dev<br class="">
                        <<a moz-do-not-send="true"
                          href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a>>
                        wrote:<br class="">
                        <blockquote type="cite" class="">Hi James,<br
                            class="">
                          <br class="">
                          Thanks,<br class="">
                          <br class="">
                          I do include the -std=c++11 as a habit.<br
                            class="">
                          <br class="">
                          I have been trying all afternoon to get this
                          to work.<br class="">
                          <br class="">
                          I am wondering now if there is a step missing
                          which describes the target OS?<br class="">
                          Xcode links to a number of SDK's when
                          producing OS X Bundles ( test.app ).<br
                            class="">
                          <br class="">
                          <br class="">
                          On 2016-12-23 5:43 PM, James Dennett wrote:<br
                            class="">
                          <br class="">
                          On Fri, Dec 23, 2016 at 1:40 PM, icloud via
                          cfe-dev <<a moz-do-not-send="true"
                            href="mailto:cfe-dev@lists.llvm.org"
                            class="">cfe-dev@lists.llvm.org</a>><br
                            class="">
                          wrote:<br class="">
                          <blockquote type="cite" class="">Hi Don,<br
                              class="">
                            <br class="">
                            I removed the extra "-I" directives but I
                            still get the same result.<br class="">
                          </blockquote>
                          This looks somewhat different to me.<br
                            class="">
                          <br class="">
                          <blockquote type="cite" class="">In file
                            included from
                            /usr/local/include/llvm/ADT/APInt.h:20:<br
                              class="">
/usr/local/include/llvm/Support/MathExtras.h:248:1: error: unknown type<br
                              class="">
                            name 'constexpr'<br class="">
                            constexpr inline uint32_t Hi_32(uint64_t
                            Value) {<br class="">
                          </blockquote>
                          You need to specify -std=c++11 (or later) as a
                          compiler option to get<br class="">
                          `constexpr` support.  You probably want to do
                          that anyway.<br class="">
                          <br class="">
                          -- James<br class="">
                          <br class="">
                          <br class="">
                          --<br class="">
                          <br class="">
                          Paul<br class="">
                          <br class="">
                          <br class="">
_______________________________________________<br class="">
                          cfe-dev mailing list<br class="">
                          <a moz-do-not-send="true"
                            href="mailto:cfe-dev@lists.llvm.org"
                            class="">cfe-dev@lists.llvm.org</a><br
                            class="">
<a class="moz-txt-link-freetext" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br class="">
                          <br class="">
                        </blockquote>
                      </blockquote>
                      --<span class="Apple-converted-space"> </span><br
                        class="">
                      <br class="">
                      Paul<br class="">
                      <br class="">
                      _______________________________________________<br
                        class="">
                      cfe-dev mailing list<br class="">
                      <a moz-do-not-send="true"
                        href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a><br
                        class="">
<a class="moz-txt-link-freetext" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br class="">
                    </blockquote>
                  </blockquote>
                  --<span class="Apple-converted-space"> </span><br
                    class="">
                  <br class="">
                  Paul<br class="">
                  <br class="">
                </blockquote>
              </blockquote>
              <br style="font-family: Helvetica; font-size: 12px;
                font-style: normal; font-variant-caps: normal;
                font-weight: normal; letter-spacing: normal; orphans:
                auto; text-align: start; text-indent: 0px;
                text-transform: none; white-space: normal; widows: auto;
                word-spacing: 0px; -webkit-text-stroke-width: 0px;"
                class="">
              <span style="font-family: Helvetica; font-size: 12px;
                font-style: normal; font-variant-caps: normal;
                font-weight: normal; letter-spacing: normal; orphans:
                auto; text-align: start; text-indent: 0px;
                text-transform: none; white-space: normal; widows: auto;
                word-spacing: 0px; -webkit-text-stroke-width: 0px;
                float: none; display: inline !important;" class="">--<span
                  class="Apple-converted-space"> </span></span><br
                style="font-family: Helvetica; font-size: 12px;
                font-style: normal; font-variant-caps: normal;
                font-weight: normal; letter-spacing: normal; orphans:
                auto; text-align: start; text-indent: 0px;
                text-transform: none; white-space: normal; widows: auto;
                word-spacing: 0px; -webkit-text-stroke-width: 0px;"
                class="">
              <br style="font-family: Helvetica; font-size: 12px;
                font-style: normal; font-variant-caps: normal;
                font-weight: normal; letter-spacing: normal; orphans:
                auto; text-align: start; text-indent: 0px;
                text-transform: none; white-space: normal; widows: auto;
                word-spacing: 0px; -webkit-text-stroke-width: 0px;"
                class="">
              <span style="font-family: Helvetica; font-size: 12px;
                font-style: normal; font-variant-caps: normal;
                font-weight: normal; letter-spacing: normal; orphans:
                auto; text-align: start; text-indent: 0px;
                text-transform: none; white-space: normal; widows: auto;
                word-spacing: 0px; -webkit-text-stroke-width: 0px;
                float: none; display: inline !important;" class="">Paul</span></div>
          </blockquote>
        </div>
        <br class="">
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 

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