Menu

It++ /cygwin error, help

wavestar
2008-03-04
2012-09-15
  • wavestar

    wavestar - 2008-03-04

    I use cywin try to link the it++ library.
    My verstion: itpp_3.10.7
    external lib: itpp_external_2.3.10
    It seems to me that I have problems when lik the libcblas library.

    Thanks a lot,


    g++ -L"C:\itpp-3.10.7\lib" -L"C:\itpp-external-2.3.0\lib" -o"test.exe" ./test.o -litpp -lfftw3 -lf77blas -latlas -llapack -lcblas
    C:\itpp-external-2.3.0\lib/libcblas.a(cblas_zdotu.o):cblas_zdotu.c:(.text+0x6b): undefined reference to _ATL_zdotu_sub' C:\itpp-external-2.3.0\lib/libcblas.a(cblas_ddot.o):cblas_ddot.c:(.text+0x4d): undefined reference to_ATL_ddot'
    C:\itpp-external-2.3.0\lib/libcblas.a(cblas_zcopy.o):cblas_zcopy.c:(.text+0x5b): undefined reference to _ATL_zcopy' C:\itpp-external-2.3.0\lib/libcblas.a(cblas_dcopy.o):cblas_dcopy.c:(.text+0x49): undefined reference to_ATL_dcopy'
    collect2: ld returned 1 exit status
    make: *** [test.exe] Error 1
    make: Target `all' not remade because of errors.

     
    • wavestar

      wavestar - 2008-03-05

      Thanks a lot, guys.
      Yes, I changed the lib order. It works now
      with Eclipse/cygwin/gcc.

      Can I compiled the it++ with visual studuio C++ 2005 express and with ACML
      in window platform, and run in Intel dual core?

      Thanks a lot to share the knowlege.

      Best,

      -Li, Qiang

       
    • Adam Piątyszek

      Adam Piątyszek - 2008-03-05

      Maybe the order of libraries in linking flags is incorrect? I remember that Cygwin is quite picky about such issue.
      Please, try putting "-latlas -lf77blas" after "-llapack -lcblas".

      BTW, IT++ 3.10.7 is quite outdated and not supported any longer (it means that it includes known bugs, which were fixed in later versions). Please consider upgrading to the latest stable release (4.0.3 at the time of writing this post).

      BR,
      /Adam

       
    • Frank NN

      Frank NN - 2008-03-05

      You can link to the ACML 3.6.0 (GNUFortran) with Cygwin.
      I also runs on my Intel CoreDuo, much faster than with the
      BLAS reference library.
      See my posting in the "Help" Forum.

       

Log in to post a comment.