Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It took a little longer, until I solved the problem.</p> <p>Download Colpack-1.0.8.tar.gz and tested it with the following environment</p> <p>Msys / mingw 4.7.0.</p> <p>As you said, you can not use it to create a shared lib. After some time I have found a more complex solution. From this basis I've found a shorter way.</p> <p><strong>short solution:</strong></p> <p>open <strong>configure</strong></p> <p>line# <strong><em>_</em>__<em>_</em>__<em>_</em>__<em>_</em></strong> change <strong><em>_</em>__<em>_</em>__<em>_</em>__<em>_</em>__<em>_</em>__<em>_</em></strong> to __</p> <pre><code>7660 enable_dlopen=no set it to yes 7663 enable_win32_dll=no set it to yes 7673 enable_shared=no set it to yes 7710 enable_static=yes set it to no 7717 enable_static=yes set it to no 8721 enable_shared_with_static_runtimes=no set it to yes 11797 enable_shared_with_static_runtimes_CXX=no set it to yes </code></pre> <p>save and run</p> <pre><code>./configure --disable-static --enable-shared </code></pre> <p>open <strong>libtool</strong></p> <p>line# <strong><em>_</em>__<em>_</em>__<em>_</em>__<em>_</em></strong> change <strong><em>_</em>__<em>_</em>__<em>_</em>__<em>_</em>__<em>_</em>__<em>_</em></strong> to __</p> <pre><code>5547 allow_undefined=yes set it to no 5550 allow_undefined=yes set it to no </code></pre> <p>save and run</p> <pre><code>make clean make </code></pre> <p>in the <strong>.lib</strong> directory should now be following files.</p> <pre><code>ColPack.exe .. 30.08.2012 libColPack.la .. 30.08.2012 libColPack.lai .. 30.08.2012 libColPack-0.dll .. 30.08.2012 libColPack.dll.a .. 30.08.2012 </code></pre> <p>outtake from <strong>libColPack-0.dll</strong> </p> <pre><code>Export Table: Name: libColPack-0.dll Time Date Stamp: 0x503F3A43 (30.08.2012 11:02:43) Version: 0.00 Ordinal Base: 1 Number of Functions: 883 Number of Names: 883 Ordinal Entry Point Name 1 0x000012FC _Z10createArgsiPPKcRSt6vectorISsSaISsEE 2 0x00011034 _Z10toFileBiPCSsSsSt6vectorISsSaISsEES1_St3mapISsbSt4lessISsESaISt4pairIKSsbEEE 3 0x00001FB0 _Z11mm_is_validPc ........ </code></pre> <p>outtake from <strong>libColPack.la</strong></p> <pre><code># libColPack.la - a libtool library file # Generated by libtool (GNU libtool) 2.4 # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='libColPack-0.dll' # Names of this library. library_names='libColPack.dll.a' ...... </code></pre> <p>Hope that helps ! </p> <p><strong>NOTE:</strong></p> <p>Have not tested "make install" ! </p> <p><strong>To have both static and dynamic:</strong></p> <p>Move libColPack.la, libColPack.lai and libColPack.dll.a to another folder. We need them and they will be overwritten. Delete the file libColPack.la, a directory-level higher.</p> <p>Change libtool file back to its original state (the 2 lines) .</p> <p>Run "make"</p> <p>You will have a new libColPack.a</p> <p>Move libColPack.dll.a back to .libs</p> <p>Merging the content of the two previously moved files with the new libColPack.la (.lai).</p> <p>Copy also the updated libColPack.la a directory-level higher. </p> <p><strong>The new mixdown file: libColPack.la</strong></p> <pre><code># libColPack.la - a libtool library file # Generated by libtool (GNU libtool) 2.4 # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='libColPack-0.dll' # Names of this library. library_names='libColPack.dll.a' .... # The name of the static archive. old_library='libColPack.a' .... </code></pre> <p>With this trick you have both <strong>static and dynamic libs</strong>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload