Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8451603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:17:07+00:00 2026-06-10T11:17:07+00:00

I have a mathematical Library ( ADOL-C ) that needs to link to an

  • 0

I have a mathematical Library (ADOL-C) that needs to link to an other library (ColPack) for some optional tasks.

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:

$ 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

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.

Any hint?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T11:17:09+00:00Added an answer on June 10, 2026 at 11:17 am

    It took a little longer, until I solved the problem.

    Download Colpack-1.0.8.tar.gz and tested it with the following environment

    Msys / mingw 4.7.0.

    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.

    short solution:

    open configure

    line# __________ change ________________ to __

    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
    

    save and run

    ./configure --disable-static --enable-shared
    

    open libtool

    line# __________ change ________________ to __

    5547        allow_undefined=yes   set it to no
    5550        allow_undefined=yes   set it to no
    

    save and run

    make clean
    make
    

    in the .lib directory should now be following files.

    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
    

    outtake from libColPack-0.dll

    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
            ........
    

    outtake from libColPack.la

    # 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'
    
    ......
    

    Hope that helps !

    NOTE:

    Have not tested “make install” !

    To have both static and dynamic:

    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.

    Change libtool file back to its original state (the 2 lines) .

    Run “make”

    You will have a new libColPack.a

    Move libColPack.dll.a back to .libs

    Merging the content of the two previously moved files with the new libColPack.la (.lai).

    Copy also the updated libColPack.la a directory-level higher.

    The new mixdown file: libColPack.la

    # 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'
    ....
    

    With this trick you have both static and dynamic libs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a javascript function that accepts a number and performs a mathematical operation
I have a large mathematical expression that has to be created dynamically. For example,
I'm working on a library where I'm farming various tasks out to some third-party
I have a difficult mathematical question that is breaking my brain, my whiteboard, and
I have to work with some (semi-)automatical verification software (CBMC (link) ) which is
I have some imported csv data that I have turned into an xts object.
I have some vectors of experimental data that I need to massage, for example:
I have some mathematical formulas of the type p = (l + m +
I have been working for two years in software industry. Some things that have
I have seen many recursive functions(mostly used in computing some mathematical operations e.g. factorial,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.