Note that there are some explanatory texts on larger screens.

plurals
  1. POMinGw32 Compliation issue when static linking is required (ADOL-C links ColPack)
    text
    copied!<p>I have a mathematical Library (<a href="https://projects.coin-or.org/ADOL-C" rel="nofollow">ADOL-C</a>) that needs to link to an other library (<a href="http://www.cscapes.org/coloringpage/software.htm" rel="nofollow">ColPack</a>) for some optional tasks.</p> <p>I can compile them fine in Linux, and both ADOl-C or ColPack alone in windows, but when I try to compile ADOL-C with ColPack in windows (MinGW 32, ld 2.22) I have the following issue:</p> <pre><code>$ make Making all in ADOL-C make[1]: Entering directory `/c/tests/ADOL-C-2.3.0/ADOL-C' [...] CC int_reverse_s.lo CC int_reverse_t.lo CXXLD libadolc.la *** Warning: This system can not link to static lib archive /usr/lib/libColPack. la. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have. Creating library file: .libs/libadolc.dll.a sparse/.libs/libsparse.a(sparsedrivers.o): In function `generate_seed_jac': c:\tests\ADOL-C-2.3.0\ADOL-C\src\sparse/sparsedrivers.cpp:119: undefined referen ce to `ColPack::BipartiteGraphPartialColoringInterface::BipartiteGraphPartialCol oringInterface(int, ...)' [...] collect2: ld returned 1 exit status make[5]: *** [libadolc.la] Error 1 make[5]: Leaving directory `/c/tests/ADOL-C-2.3.0/ADOL-C/src' make[4]: *** [all-recursive] Error 1 </code></pre> <p>I can't just provide the dynamic library as in MinGW, even if I configure ColPack with --enable-shared, I never got actually any shared library from its compilation, only libColPack.[a|la|lai] and ColPack.exe.</p> <p>Any hint?</p>
 

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