<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Daniel<br>
    Since your problem is in the flatapi, continue in the instructions
    for the c# bindings.<br>
    There are some changes that need to be made in the dll export
    declaration to get<br>
    it to work with Windows. Those are steps 5 and 6 of the tutorial.
    Also, in step 9, you<br>
    need to make sure that the dlls listed are in the same directory as
    your project output<br>
    (or in a lib path)<br>
    Jon<br>
    <div class="moz-cite-prefix">On 12/31/2014 4:04 PM, Daniel Sheffield
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAGBFyFUbiVobOsUQhoxdfX2GFHzMg6K2ZChv1OZhweWJfk345g@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>Hi Jon,<br>
                  <br>
                </div>
                Thanks for that help, I changed icu-sword dir back to
                icu (it really is the latest icu - not icu-sword!), and
                rebuilt the dll.<br>
              </div>
              Still can't link to it: -lsword -licuuc54 -licuin54
              -licudt54<br>
            </div>
            Linker doesn't complain can't find lib or anything, but
            still outputs the errors in my prior message.<br>
          </div>
          undefined reference to
          '<a class="moz-txt-link-freetext" href="sword:SWModule\SWMgr\SWkey\SWBuf\MarkupFilterMgr">sword:SWModule\SWMgr\SWkey\SWBuf\MarkupFilterMgr</a>' - which
          appear to all be in flatapi.h so I really don't know why they
          aren't their after following the directions here: <a
            moz-do-not-send="true"
            href="http://www.crosswire.org/wiki/CSharp_Bindings_on_Windows"
            target="_blank">http://www.crosswire.org/wiki/CSharp_Bindings_on_Windows</a><br>
          <br>
        </div>
        Cheers for your help,<br>
        Daniel<br>
      </div>
      <div class="gmail_extra"><br clear="all">
        <div>
          <div class="gmail_signature">--<br>
            In the beginning Kibo created the Internet. Now the Internet
            was formless, and empty. Randomness was upon the face of
            computing, and the Spirit of ARPA moved upon the face of the
            computers. Then Kibo said, "Let there be data": and there
            was data. Kibo saw the data, and it was good, so Kibo
            divided the data from the randomness, and Kibo named the
            data Information, and the randomness Clueless. And the
            Information and the Clueless were the first Network.</div>
        </div>
        <br>
        <div class="gmail_quote">On Thu, Jan 1, 2015 at 8:03 AM, Jon
          Behrens <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:jbb@crimsonthread.com" target="_blank">jbb@crimsonthread.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello
            Daniel<br>
            Look here <a moz-do-not-send="true"
              href="http://www.crosswire.org/wiki/CSharp_Bindings_on_Windows"
              target="_blank">http://www.crosswire.org/wiki/CSharp_Bindings_on_Windows</a><br>
            The first section of this tutorial deals with changes needed
            to get Sword 1.7.3 to build<br>
            with VS2013. You can ignore the remainder.<br>
            Be blessed,<br>
            Jon
            <div>
              <div class="h5"><br>
                On 12/30/2014 8:29 PM, Daniel Sheffield wrote:<br>
              </div>
            </div>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div>
                <div class="h5">
                  Hi all,<br>
                  <br>
                  I've been having trouble building libsword.dll for
                  windows.<br>
                  I've followed the information here: <a
                    moz-do-not-send="true"
href="http://www.crosswire.org/wiki/Tutorial:Compiling_%26_Installing_SWORD_on_Windows"
                    target="_blank">http://www.crosswire.org/wiki/Tutorial:Compiling_%26_Installing_SWORD_on_Windows</a><br>
                  <br>
                  Finally figured out (searching the sword-devel
                  archives) that all I needed to do was rename icu to
                  icu-sword and similarly rename the curl output dir to
                  what MSVS was expecting and I was able to build the
                  solution.<br>
                  <br>
                  However: I can't seem to link against the
                  libsword.dll/libsword.lib.<br>
                  The only way I have been able to successfully build my
                  project with libsword is by adding objects.a
                  (generated by cross-compiling libsword on linux using
                  mxe) to the list of sources which effectively copies
                  all the objects in.<br>
                  <br>
                  This is what I get at compile time when I link against
                  libsword.dll<br>
                  agents\sword\sword.o:sword.cpp:(.text+0x41): undefined
                  reference to `<a class="moz-txt-link-freetext" href="sword::MarkupFilterMgr::MarkupFilterMgr(char">sword::MarkupFilterMgr::MarkupFilterMgr(char</a>,
                  char)'<br>
                  agents\sword\sword.o:sword.cpp:(.text+0x5c): undefined
                  reference to `<a class="moz-txt-link-freetext" href="sword::SWMgr::SWMgr(sword::SWFilterMgr*">sword::SWMgr::SWMgr(sword::SWFilterMgr*</a>,
                  bool)'<br>
                  agents\sword\sword.o:sword.cpp:(.text+0x95): undefined
                  reference to `<a class="moz-txt-link-freetext" href="sword::SWKey::SWKey(char">sword::SWKey::SWKey(char</a> const*)'<br>
                  agents\sword\sword.o:sword.cpp:(.text+0xb5): undefined
                  reference to `<a class="moz-txt-link-freetext" href="sword::SWKey::~SWKey()">sword::SWKey::~SWKey()</a>'<br>
                  agents\sword\sword.o:sword.cpp:(.text+0xdd): undefined
                  reference to `<a class="moz-txt-link-freetext" href="sword::SWModule::renderText(char">sword::SWModule::renderText(char</a> const*,
                  int, bool)'<br>
                  agents\sword\sword.o:sword.cpp:(.text+0x10b):
                  undefined reference to `<a class="moz-txt-link-freetext" href="sword::SWMgr::~SWMgr()">sword::SWMgr::~SWMgr()</a>'<br>
                  agents\sword\sword.o:sword.cpp:(.text+0x129):
                  undefined reference to `<a class="moz-txt-link-freetext" href="sword::SWKey::~SWKey()">sword::SWKey::~SWKey()</a>'<br>
                  agents\sword\sword.o:sword.cpp:(.text+0x13a):
                  undefined reference to `<a class="moz-txt-link-freetext" href="sword::SWMgr::~SWMgr()">sword::SWMgr::~SWMgr()</a>'<br>
                  agents\sword\sword.o:sword.cpp:(.text$_ZN5sword5SWBufD1Ev[__ZN5sword5SWBufD1Ev]+0xfffffe6c):
                  undefined reference to `<a class="moz-txt-link-freetext" href="sword::SWBuf::nullStr">sword::SWBuf::nullStr</a>'<br>
                  <br>
                  These compile time errors disappear when I add
                  objects.a to the list of sources AND there are no
                  run-time errors either (despite neither linking
                  against icu).<br>
                  <br>
                  I have no idea whats going on. Perhaps it's because I
                  build libsword.dll with MS Visual Studio and am trying
                  to link it with MinGW's g++...<br>
                  <br>
                  If anyone can help I'd appreciate it!<br>
                  <br>
                  Daniel Sheffield<br>
                  <br>
                  Associate Engineer - Software<br>
                  Level 2, Building A, The Millennium Building Phase 2,
                  600 Great South Road<br>
                  Ellerslie,<br>
                  Auckland,<br>
                  1051<br>
                  <br>
                  <a moz-do-not-send="true"
                    href="tel:%2B64%209%20926%202895"
                    value="+6499262895" target="_blank">+64 9 926 2895</a> Office<br>
                  <a moz-do-not-send="true"
                    href="tel:%2B64%2021%201408%20708"
                    value="+64211408708" target="_blank">+64 21 1408 708</a> Mobile<br>
                  <a moz-do-not-send="true" href="http://www.emulex.com"
                    target="_blank">http://www.emulex.com</a><br>
                  <br>
                  On Tue, 30 Dec 2014, Troy A. Griffitts wrote:<br>
                  <br>
                  <blockquote class="gmail_quote" style="margin:0 0 0
                    .8ex;border-left:1px #ccc solid;padding-left:1ex">
                    Done.  Thanks for subscribing!<br>
                    <br>
                    <br>
                    On 12/30/2014 03:21 PM, Daniel Sheffield wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      Sorry to bother you yet again...<br>
                      I filled out some form <a moz-do-not-send="true"
href="http://www.crosswire.org/mailman/listinfo/sword-devel"
                        target="_blank">http://www.crosswire.org/mailman/listinfo/sword-devel</a>
                      and was directed to send an e-mail to
                      sword-support to verify I am not a robot.<br>
                      My question is when my e-mail and password will be
                      active on sword-devel. I just tried it now and was
                      rejected.<br>
                      <br>
                      I'm aware this all takes time - I'm not in a rush
                      - just checking that I've actually completed all
                      the steps to subscribe.<br>
                      <br>
                      Cheers,<br>
                      <br>
                      Daniel Sheffield<br>
                      <br>
                      Associate Engineer - Software<br>
                      Level 2, Building A, The Millennium Building Phase
                      2, 600 Great South Road<br>
                      Ellerslie,<br>
                      Auckland,<br>
                      1051<br>
                      <br>
                      <a moz-do-not-send="true"
                        href="tel:%2B64%209%20926%202895"
                        value="+6499262895" target="_blank">+64 9 926
                        2895</a> Office<br>
                      <a moz-do-not-send="true"
                        href="tel:%2B64%2021%201408%20708"
                        value="+64211408708" target="_blank">+64 21 1408
                        708</a> Mobile<br>
                      <a moz-do-not-send="true"
                        href="http://www.emulex.com" target="_blank">http://www.emulex.com</a><br>
                      <br>
                      On Tue, 30 Dec 2014, Peter von Kaehne wrote:<br>
                      <br>
                      <blockquote class="gmail_quote" style="margin:0 0
                        0 .8ex;border-left:1px #ccc
                        solid;padding-left:1ex">
                        <br>
                        Daniel, i think you should subscribe to
                        sword-devel. Sword support is more about people
                        not being<br>
                        able to understand the programms they downloaded
                        etc. I am sure your problem has been discussed<br>
                        several times on that list.<br>
                        <br>
                        Biblecs might be a VS programme, but most others
                        use msys which is a pared down unixy<br>
                        buildenvironment<br>
                        <br>
                        On 30 Dec 2014 20:49, Daniel Sheffield &lt;<a
                          moz-do-not-send="true"
                          href="mailto:d.j.yotta@gmail.com"
                          target="_blank">d.j.yotta@gmail.com</a>&gt;
                        wrote:<br>
                              Yeah, I've stumbled accross MSYS which
                        appears to a particular build environment on<br>
                              windows?<br>
                        <br>
                        In regards to my linking issuse, the latest news
                        is that I have managed to link against the<br>
                        libsword.dll.a and, because of the run time
                        errors, tracked the undefined references down to<br>
                        the icu*54.dlls. I'll try recompiling them (I
                        also downloaded pre-compiled ones for icu too -<br>
                        dunno if I've tried those).<br>
                        <br>
                        I don't know why, but when I use libsword.a
                        instead of libsword.dll.a, I get neither compile<br>
                        time nor run time errors. Then again, I haven't
                        tried actually calling the sword functions yet<br>
                        in my windows port - just wanted it to compile
                        first!<br>
                        <br>
                        Atm, I'm reading up about all these forms of
                        library files. I think that will help me figure<br>
                        out what is going on.<br>
                        <br>
                        Cheers,<br>
                        Daniel<br>
                        <br>
                        -- <br>
                        In the beginning Kibo created the Internet. Now
                        the Internet was formless, and empty.<br>
                        Randomness was upon the face of computing, and
                        the Spirit of ARPA moved upon the face of the<br>
                        computers. Then Kibo said, "Let there be data":
                        and there was data. Kibo saw the data, and it<br>
                        was good, so Kibo divided the data from the
                        randomness, and Kibo named the data Information,<br>
                        and the randomness Clueless. And the Information
                        and the Clueless were the first Network.<br>
                        <br>
                        On Wed, Dec 31, 2014 at 12:37 AM, Peter von
                        Kaehne &lt;<a moz-do-not-send="true"
                          href="mailto:refdoc@crosswire.org"
                          target="_blank">refdoc@crosswire.org</a>&gt;
                        wrote:<br>
                              Not a programmer, but i am thinking , most
                        things are done successfully via msys<br>
                              rather than via MS stuff.<br>
                        <br>
                              On 30 Dec 2014 05:34, Daniel Sheffield
                        &lt;<a moz-do-not-send="true"
                          href="mailto:d.j.yotta@gmail.com"
                          target="_blank">d.j.yotta@gmail.com</a>&gt;
                        wrote:<br>
                              &gt;<br>
                              &gt; Hi,<br>
                              &gt;<br>
                              &gt; I develop mainly on linux and have
                        been linking to the sword library for a<br>
                              project I'm working on (bibq hosted on
                        sourceforge).<br>
                              &gt;<br>
                              &gt; I have ported my project also to
                        windows, but have been having difficulty<br>
                              compiling libsword.dll.<br>
                              &gt; Xiphos was the only package I could
                        find that had this dill precompiled and I<br>
                              tried using that.<br>
                              &gt; After suffering dll hell, I finally
                        managed to find all the dlls the xiphos<br>
                              libsword.dll depended on only to have
                        missing functions at runtime.<br>
                              &gt;<br>
                              &gt; Idealy, I want to compile
                        libsword.dll from scratch but I have tried every
                        which<br>
                              way to do this.<br>
                              &gt;<br>
                              &gt; . I followed the instructions here:<br>
                        <a moz-do-not-send="true"
href="http://crosswire.org/wiki/Tutorial:Compiling_%26_Installing_SWORD_on_Windows"
                          target="_blank">http://crosswire.org/wiki/Tutorial:Compiling_%26_Installing_SWORD_on_Windows</a>
                        <br>
                              eventually building all the dependancies
                        except clucene which eludes all attempts<br>
                              at building on windows. I attempted
                        compiling without clucene and appeared to get<br>
                              errors that didn't relate to clucene
                        anyhow and couldn't progress any further.<br>
                              &gt; . I then tried cross-compiling on
                        linux targeted at windows. I used mxe and<br>
                              things went pretty smoothly but I get link
                        errors at the final step of linking<br>
                              libsword.dll (to do with icu).<br>
                              &gt;<br>
                              &gt; I'm about ready to give up and use
                        jsword - but that feels so wrong!<br>
                              &gt;<br>
                              &gt; I guess I'm not really expecting to
                        be hand-held through the build process, but<br>
                              my main question is why I can't simply
                        build using MS Visual Studio? There seems<br>
                              to be a problem with MS Visual Studio 2013
                        as I've encountered even errors such as<br>
                              "can not find stdio.h/stdlib.h" when
                        generating the clucene solution with cmake.<br>
                              The solution file for SWORD also doesn't
                        build. I'm most likely noobing something<br>
                              here though because I never develop on
                        windows before - other than "hello world"<br>
                              type stuff. And now I know why!<br>
                              &gt;<br>
                              &gt; Cheers if you can help.<br>
                              &gt; Daniel<br>
                              &gt; --<br>
                              &gt; In the beginning Kibo created the
                        Internet. Now the Internet was formless, and<br>
                              empty. Randomness was upon the face of
                        computing, and the Spirit of ARPA moved<br>
                              upon the face of the computers. Then Kibo
                        said, "Let there be data": and there was<br>
                              data. Kibo saw the data, and it was good,
                        so Kibo divided the data from the<br>
                              randomness, and Kibo named the data
                        Information, and the randomness Clueless. And<br>
                              the Information and the Clueless were the
                        first Network.<br>
                        <br>
                        <br>
                        <br>
                        <br>
                      </blockquote>
                      <br>
                      _______________________________________________<br>
                      sword-support mailing list<br>
                      <a moz-do-not-send="true"
                        href="mailto:sword-support@crosswire.org"
                        target="_blank">sword-support@crosswire.org</a><br>
                    </blockquote>
                    <br>
                    <br>
                  </blockquote>
                  <br>
                </div>
              </div>
              _______________________________________________<br>
              sword-devel mailing list: <a moz-do-not-send="true"
                href="mailto:sword-devel@crosswire.org" target="_blank">sword-devel@crosswire.org</a><br>
              <a moz-do-not-send="true"
                href="http://www.crosswire.org/mailman/listinfo/sword-devel"
                target="_blank">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>
              Instructions to unsubscribe/change your settings at above
              page<br>
            </blockquote>
            <br>
            <br>
            <br>
            _______________________________________________<br>
            sword-devel mailing list: <a moz-do-not-send="true"
              href="mailto:sword-devel@crosswire.org" target="_blank">sword-devel@crosswire.org</a><br>
            <a moz-do-not-send="true"
              href="http://www.crosswire.org/mailman/listinfo/sword-devel"
              target="_blank">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>
            Instructions to unsubscribe/change your settings at above
            page<br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">This body part will be downloaded on demand.</pre>
    </blockquote>
    <br>
  </body>
</html>