[ADOL-C] [MinGw32] Make error in compilation of ADOL-C with ColPack

Antonello Lobianco antonello at lobianco.org
Tue Aug 28 11:39:21 EDT 2012


Hello,
 I finally managed to get ADOL-C working nicely with ColPack under Linux
and I need to port it in Windows, using MinGw (32 bit).

I am able to compile ADOL-C alone creating the src symlink and getting rid
of the libtool version mismatch, however I still have the problem of
linking it with ColPack.

I can configure (--prefix=/usr), make and make install ColPack.
Then I can configure (--prefix=/usr --with-colpack=/usr) ADOL-C.
However when I make ADOL-C I have the following error:

-----------------------------------------------------------------------------
Configuration:

  C compiler:                       gcc
  C++ compiler:                     g++
  Linker:                           c:/mingw/mingw32/bin/ld.exe
  Source code location:             /c/tests/ADOL-C-2.3.0
  Install path:                     /usr

  CFLAGS:                           -O2
  CXXFLAGS:                         -O2

  Use ADOL-C debug mode:            no
  Use ADOL-C hard debug mode:       no
  Use ADOL-C adouble zeroing mode:  no
  Use ADOL-C safe extern mode:      no

  Build sparse drivers:             yes
  Build with ColPack:               yes

  Build documented examples:        no
  Build additional examples:        no

  See ADOL-C/src/config.h for further configuration information.
-----------------------------------------------------------------------------

Antonello Lobianco at antonello-virtu /c/tests/ADOL-C-2.3.0
$ 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, ...)'
c:\tests\ADOL-C-2.3.0\ADOL-C\src\sparse/sparsedrivers.cpp:126: undefined
referen
ce to
`ColPack::BipartiteGraphPartialColoringInterface::GenerateSeedJacobian_unm
anaged(double***, int*, int*, std::string, std::string)'

[...]

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

Any hint? Anyone has been able to compile ADOL-C with ColPack in Windows
using mingw ?

Thanks,
  Antonello

-- 
Antonello Lobianco
INRA, Laboratoire d'Economie Forestière
14 Rue Girardet - 54000 Nancy, France
Tel: +33.652392310
Email: antonello.lobianco at nancy-engref.inra.fr
http://antonello.lobianco.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/adol-c/attachments/20120828/77607ac2/attachment.html>


More information about the ADOL-C mailing list