Menu

compilation under solaris

2003-12-17
2012-09-15
  • Thomas Lemaire

    Thomas Lemaire - 2003-12-17

    I have tried to compile it++ under solaris 8 with several compilers, none was succesful.  Can any body help ?

    Here is a list of the compilation attempt and the errors :

    (1) g++3.3.1 :
    g++ -Wall -pipe -mv8 -O3 -DNDEBUG -DASSERT_LEVEL=1 -I../include -I../src/base/fftw -
    c base/bessel.cpp -o base/bessel.o
    g++ -Wall -pipe -mv8 -O3 -DNDEBUG -DASSERT_LEVEL=1 -I../include -I../src/base/fftw -
    c base/converters.cpp -o base/converters.o
    base/converters.cpp: In function `itpp::cvec itpp::to_cvec(const
       itpp::Vec<Num_T>&) [with T = itpp::bin]':
    base/converters.cpp:346:   instantiated from here
    base/converters.cpp:78: error: invalid static_cast from type `itpp::bin' to
       type `std::complex<double>'
    base/converters.cpp: In function `itpp::cmat itpp::to_cmat(const
       itpp::Mat<Num_T>&) [with T = itpp::bin]':
    base/converters.cpp:392:   instantiated from here
    base/converters.cpp:159: error: invalid static_cast from type `const itpp::bin'
       to type `std::complex<double>'
    gnumake[1]: *** [base/converters.o] Error 1
    gnumake[1]: Leaving directory `/home/tlemaire/opt/it++3.7.1/src'
    gnumake: *** [suball] Error 2

    (2) g++2.95.2 :

    gnumake[1]: Entering directory `/home/tlemaire/opt/it++3.7.1/src'
    g++ -Wall -pipe -mv8 -O3 -DNDEBUG -DASSERT_LEVEL=1 -I../include -I../src/base/fftw -
    c base/itassert.cpp -o base/itassert.o
    g++ -Wall -pipe -mv8 -O3 -DNDEBUG -DASSERT_LEVEL=1 -I../include -I../src/base/fftw -
    c base/timing.cpp -o base/timing.o
    g++ -Wall -pipe -mv8 -O3 -DNDEBUG -DASSERT_LEVEL=1 -I../include -I../src/base/fftw -
    c base/binfile.cpp -o base/binfile.o
    g++ -Wall -pipe -mv8 -O3 -DNDEBUG -DASSERT_LEVEL=1 -I../include -I../src/base/fftw -
    c base/itfile.cpp -o base/itfile.o
    In file included from ../include/base/itfile.h:28,
                     from base/itfile.cpp:24:
    ../include/base/mat.h:31: sstream: No such file or directory
    In file included from ../include/base/mat.h:35,
                     from ../include/base/itfile.h:28,
                     from base/itfile.cpp:24:
    ../include/base/vec.h:33: sstream: No such file or directory
    In file included from ../include/base/mat.h:35,
                     from ../include/base/itfile.h:28,
                     from base/itfile.cpp:24:
    ../include/base/vec.h: In method `bool itpp::Vec<Num_T>::set(const char *)':
    ../include/base/vec.h:504: parse error before `('
    In file included from ../include/base/itfile.h:28,
                     from base/itfile.cpp:24:
    ../include/base/mat.h: In method `bool itpp::Mat<Num_T>::set(const char *)':
    ../include/base/mat.h:532: parse error before `('
    gnumake[1]: *** [base/itfile.o] Error 1
    gnumake[1]: Leaving directory `/home/tlemaire/opt/it++3.7.1/src'
    gnumake: *** [suball] Error 2

    (3) CC compiler from sun :
    ....
    CC: Warning: Option -Wall passed to ld, if ld is invoked, ignored otherwise
    CC: Warning: Option -pipe passed to ld, if ld is invoked, ignored otherwise
    CC: Warning: Option -mv8 passed to ld, if ld is invoked, ignored otherwise
    CC -Wall -pipe -mv8 -fast -cg92 -DNDEBUG -DASSERT_LEVEL=1 -I../include -I../src/base
    /fftw -c base/scalfunc.cpp -o base/scalfunc.o
    CC: Warning: Option -Wall passed to ld, if ld is invoked, ignored otherwise
    CC: Warning: Option -pipe passed to ld, if ld is invoked, ignored otherwise
    CC: Warning: Option -mv8 passed to ld, if ld is invoked, ignored otherwise
    "base/scalfunc.cpp", line 248: Error: Overloading ambiguity between "std::abs(double
    )" and "std::abs(float)".
    "base/scalfunc.cpp", line 249: Error: Overloading ambiguity between "std::abs(double
    )" and "std::abs(float)".
    2 Error(s) detected.
    gnumake[1]: *** [base/scalfunc.o] Error 2
    gnumake[1]: Leaving directory `/home/tlemaire/opt/it++3.7.1/src'
    gnumake: *** [suball] Error 2

     
    • Pĺl Frenger

      Pĺl Frenger - 2003-12-20

      See my comments in the Help section...
      //Pl Frenger

       

Log in to post a comment.