<div>Have you looked into the <a href="https://common-lisp.net/project/ecl/static/manual/Foreign-Function-Interface.html#index-ffi_003aload_002dforeign_002dlibrary" target="_blank" title="https://common-lisp.net/project/ecl/static/manual/Foreign-Function-Interface.html#index-ffi_003aload_002dforeign_002dlibrary" rel="nofollow">ffi:load-foreign-library</a> macro? You may also want to look at the CFFI entry and consider using that library (rationale and link is in docs).<br></div><div><br></div><div>Also, if you haven't already, you may want to review <a href="https://gitlab.com/embeddable-common-lisp/ecl/-/tree/develop/examples" target="_blank" title="https://gitlab.com/embeddable-common-lisp/ecl/-/tree/develop/examples" rel="nofollow">the examples in the ECL GitLab repository</a>.<br></div><div><br></div><div class="protonmail_signature_block"><div class="protonmail_signature_block-user"><div>PRD<br></div></div><div class="protonmail_signature_block-proton protonmail_signature_block-empty"><br></div></div><div><br></div><div class="protonmail_quote">
        ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐<br>
        On Thursday, December 3rd, 2020 at 9:31 PM, Garrett Dangerfield <garrett@dangerimp.com> wrote:<br>
        <blockquote class="protonmail_quote" type="cite">
            <div dir="ltr"><div>Thanks, that was very helpful.</div><div><br></div><div>The current situation I'm facing is how to actually utilize an OBJ file.  I can generate one, no problem (yay). I can link it into an EXE it doesn't seem to want to reference it.  I expect I need to do some sort of "load" on it (which I can do with Lisp files) to get it into the Lisp symbol system.</div><div><br></div><div>I trying creating a DLL and that was successful but then when I try and link the EXE together using the DLL it says the DLL file format is unrecognized (this was with a shared library DLL).</div><div><br></div><div>So, some general direction would be helpful and--more specifically--how to tell ECL to load an OBJ file would be great.  (load "xxx.obj") didn't go so well. :-)</div><div><br></div><div>Thanks,</div><div>Garrett Dangerfield.<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Dec 3, 2020 at 12:53 PM pdoherty <<a href="mailto:pdoherty@protonmail.com" rel="noreferrer nofollow noopener">pdoherty@protonmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I can't speak to the Windows requirement, but this example I put together should help get you started:<br><br><a href="https://github.com/ethagnawl/ecl-hello-r-lisp" target="_blank" rel="noreferrer nofollow noopener">https://github.com/ethagnawl/ecl-hello-r-lisp</a><br><br>PRD<br><br>Sent from ProtonMail mobile<br><br><br><br>-------- Original Message --------<br>On Dec 3, 2020, 3:45 PM, Garrett Dangerfield < <a href="mailto:garrett@dangerimp.com" target="_blank" rel="noreferrer nofollow noopener">garrett@dangerimp.com</a>> wrote:<blockquote><br><div dir="ltr"><div>Is there an simple example program somewhere (I can't find one) that shows a function defined in a Lisp file and then used in a C/C++ file?  With all the compile and linking commands needed to make it work?</div><div><br></div><div>Ideally for Windows using Microsoft command line tools.</div><div><br></div><div>Thanks much,</div><div>Garrett Dangerfield.<br></div><br></div>
</blockquote></blockquote></div>

        </blockquote><br>
    </div>