$makeg++`/usr/local/bin/itpp-config--debug --cflags` example.cpp -o example_debug `/usr/local/bin/itpp-config --debug --static --libs`/usr/local/lib/liblapack.a(xerbla.o):xerbla.f:(.text+0x3f):undefinedreferenceto`__gfortran_st_write'/usr/local/lib/liblapack.a(xerbla.o):xerbla.f:(.text+0x5a): undefined reference to `__gfortran_transfer_character'/usr/local/lib/liblapack.a(xerbla.o):xerbla.f:(.text+0x75):undefinedreferenceto`__gfortran_transfer_integer'/usr/local/lib/liblapack.a(xerbla.o):xerbla.f:(.text+0x7d): undefined reference to `__gfortran_st_write_done'/usr/local/lib/liblapack.a(xerbla.o):xerbla.f:(.text+0x89):undefinedreferenceto`__gfortran_stop_numeric'/usr/local/lib/liblapack.a(ilaenv.o):ilaenv.f:(.text+0x6e): undefined reference to `__gfortran_compare_string'/usr/local/lib/liblapack.a(ilaenv.o):ilaenv.f:(.text+0x9a):undefinedreferenceto`__gfortran_compare_string'/usr/local/lib/liblapack.a(ilaenv.o):ilaenv.f:(.text+0xc6): undefined reference to `__gfortran_compare_string'/usr/local/lib/liblapack.a(ilaenv.o):ilaenv.f:(.text+0xf2):undefinedreferenceto`__gfortran_compare_string'/usr/local/lib/liblapack.a(ilaenv.o):ilaenv.f:(.text+0x11e): undefined reference to `__gfortran_compare_string'/usr/local/lib/liblapack.a(ilaenv.o):ilaenv.f:(.text+0x146):moreundefinedreferencesto`__gfortran_compare_string' follow/usr/local/lib/liblapack.a(dhseqr.o):dhseqr.f:(.text+0x7df): undefined reference to `__gfortran_concat_string'/usr/local/lib/liblapack.a(liblapack_noopt_la-dlamch.o):dlamch.f:(.text+0xcb8):undefinedreferenceto`__gfortran_st_write'/usr/local/lib/liblapack.a(liblapack_noopt_la-dlamch.o):dlamch.f:(.text+0xcd6): undefined reference to `__gfortran_transfer_integer'/usr/local/lib/liblapack.a(liblapack_noopt_la-dlamch.o):dlamch.f:(.text+0xce4):undefinedreferenceto`__gfortran_st_write_done'/usr/local/lib/liblapack.a(zhseqr.o):zhseqr.f:(.text+0x3b5): undefined reference to `__gfortran_concat_string'/usr/local/lib/liblapack.a(dtrtri.o):dtrtri.f:(.text+0x466):undefinedreferenceto`__gfortran_concat_string'/usr/local/lib/liblapack.a(ztrtri.o):ztrtri.f:(.text+0x413): undefined reference to `__gfortran_concat_string'/usr/local/lib/liblapack.a(zlaqr0.o):zlaqr0.f:(.text+0x1827):undefinedreferenceto`_csqrt'/usr/local/lib/liblapack.a(zlahqr.o):zlahqr.f:(.text+0xd43): undefined reference to `_csqrt'/usr/local/lib/liblapack.a(zlahqr.o):zlahqr.f:(.text+0xd87):undefinedreferenceto`_csqrt'/usr/local/lib/liblapack.a(zlahqr.o):zlahqr.f:(.text+0xebf): undefined reference to `_csqrt'/usr/local/lib/liblapack.a(zlaqr4.o):zlaqr4.f:(.text+0x17f5):undefinedreferenceto`_csqrt'collect2:ldreturned1exitstatusmake:***[example]Error1
I think your local installation of LAPACK in /usr/local/lib is somehow broken.
At least the static library. I recommend you to remove all the files from
itpp-external package installation and try with LAPACK and FFTW provided by
Cygwin. The itpp-external package is only recommended when native LAPACK, BLAS
and FFTW libraries are not available.
If this still won't help, please try to use shared linking instead of static.
BR,
/Adam
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the hint. That solved the problem. the LAPACK installation in
/usr/local/lib (from itpp-external package) was indeed broken. I deleted it
and relied on the LAPACK and FFTW packages provided by Cygwin. Here is what I
did
1) deleted all LAPACK and FFTW libraries in /usr/local/lib
2) use the following to configure build and install (I enabled both shared and
static since I was not sure that the problem was related to the static
linking)
(./configure --enable-shared --enable-static --enable-debug F77=gfortran &&
make && make check && make install) > compile.log
I still do not understand why using the itpp-external the installation routine
reports that all tests passed meanwhile compiling and linking even the
simplest program does not work. I though that the installation would link all
tests routines against those libraries and hence assert that they are properly
configured. I am certainly missing something here.
BR
GA
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I just installed itpp-4.0.7 on cygwin 1.7.1 (win7 64). I also installed the
itpp-external-3.2.0
When compiling and linking as described in point 4 here
http://itpp.sourceforge.net/current/installation.html
get the following
error message.
Here is my makefile
Thanks for any hint.
GA
It seems that there is an issue with your gfortran compiler. Have you
installed gfortran for cygwin and its development package ?
Also, instead of using itpp-external-3.2.0 you could try to install lapack and
fftw from cygwin, this approach works for me with no errors.
BTW here is itpp configuration
@cristeab
Hi thanks for your answer
gfortran seems to be installed properly
I did a full installation of cygwin and I though that all the lib and lib-dev
package were installed. I will try to manually install those again.
GA
Thanks
gfortran is correctly installed and I can compile and link fortran programs
with call to lapack routines using gfortran
I used the following line to configure make and install
./configure --disable-shared --enable-static --enable-debug F77=gfortran &&
make && make check && make install
everything was OK. But still I am not able to compile the sample code.
Plz help
GA
Hi GA,
I think your local installation of LAPACK in /usr/local/lib is somehow broken.
At least the static library. I recommend you to remove all the files from
itpp-external package installation and try with LAPACK and FFTW provided by
Cygwin. The itpp-external package is only recommended when native LAPACK, BLAS
and FFTW libraries are not available.
If this still won't help, please try to use shared linking instead of static.
BR,
/Adam
@ediap
Thanks for the hint. That solved the problem. the LAPACK installation in
/usr/local/lib (from itpp-external package) was indeed broken. I deleted it
and relied on the LAPACK and FFTW packages provided by Cygwin. Here is what I
did
1) deleted all LAPACK and FFTW libraries in /usr/local/lib
2) use the following to configure build and install (I enabled both shared and
static since I was not sure that the problem was related to the static
linking)
(./configure --enable-shared --enable-static --enable-debug F77=gfortran &&
make && make check && make install) > compile.log
3) Build and executed the test program as described in point 4 @ http://itpp.
sourceforge.net/current/installation.html (itpp.sourceforge.net)
every thing was just fine!!
I still do not understand why using the itpp-external the installation routine
reports that all tests passed meanwhile compiling and linking even the
simplest program does not work. I though that the installation would link all
tests routines against those libraries and hence assert that they are properly
configured. I am certainly missing something here.
BR
GA