← Back to team overview

dolfin team mailing list archive

Re: MS visual studio C++ 8

 

> Alessio Quaglino wrote:
>> I've first installed uBlas using bjam as explained by:
>>  http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl?InstallingBoost
>>
>> so that now I can it link to my program using:
>>
>> #include <boost/filesystem/operations.hpp>
>>
>> is that correct? May I afterwards use the pkg-config building system
>> through cygwin (which adds license issues) or should I move the source
>> and
>> build it directly (which can be time consuming)? Has anyone already
>> tried
>> to use dolfin inside Visual Studio C++? Thanks.
>>
>> Alessio Quaglino
>>
>>
>>
>>
>> _______________________________________________
>> DOLFIN-dev mailing list
>> DOLFIN-dev@xxxxxxxxxx
>> http://www.fenics.org/mailman/listinfo/dolfin-dev
>
> I've only heard about getting it working under Cygwin.
>
> (If you manage to get it to work, please consider adding a few notes
> about it on the wiki.)
>
> /Anders


Ok sure. Just to see if you are familiar with the messages I'm getting,
here is the output (seems everything depends on ublas):

C:\Program\Microsoft Visual Studio 8\VC\include\memory(93) : warning
C4996: 'std::_Uninit_copy' was declared deprecated
        C:\Program\Microsoft Visual Studio 8\VC\include\memory(82) : see
declaration of 'std::_Uninit_copy'
        Message: 'You have used a std:: construct that is not safe. See
documentation on how to use the Safe Standard C++ Library'
        C:\Boost\include\boost-1_34_1\boost/numeric/ublas/storage.hpp(96)
: see reference to function template instantiation '_FwdIt
std::uninitialized_copy<const
double*,double*>(_InIt,_InIt,_FwdIt)' being compiled
        with
        [
            _FwdIt=double *,
            _InIt=const double *
        ]
        C:\Boost\include\boost-1_34_1\boost/numeric/ublas/storage.hpp(92)
: while compiling class template member function
'boost::numeric::ublas::unbounded_array<T>::unbounded_array(const
boost::numeric::ublas::unbounded_array<T> &)'
        with
        [
            T=double
        ]
        C:\Boost\include\boost-1_34_1\boost/numeric/ublas/vector.hpp(38) :
see reference to class template instantiation
'boost::numeric::ublas::unbounded_array<T>' being compiled
        with
        [
            T=double
        ]
        C:\cygwin\home\alessio\dolfin\src\kernel\la\dolfin/uBlasVector.h(38)
: see reference to class template instantiation
'boost::numeric::ublas::vector<T>' being compiled
        with
        [
            T=double
        ]
C:\Program\Microsoft Visual Studio 8\VC\include\memory(93) : warning
C4996: 'std::_Uninit_copy' was declared deprecated
        C:\Program\Microsoft Visual Studio 8\VC\include\memory(82) : see
declaration of 'std::_Uninit_copy'
        Message: 'You have used a std:: construct that is not safe. See
documentation on how to use the Safe Standard C++ Library'
        C:\Boost\include\boost-1_34_1\boost/numeric/ublas/storage.hpp(96)
: see reference to function template instantiation '_FwdIt
std::uninitialized_copy<const unsigned int*,unsigned
int*>(_InIt,_InIt,_FwdIt)' being compiled
        with
        [
            _FwdIt=unsigned int *,
            _InIt=const unsigned int *
        ]
        C:\Boost\include\boost-1_34_1\boost/numeric/ublas/storage.hpp(92)
: while compiling class template member function
'boost::numeric::ublas::unbounded_array<T>::unbounded_array(const
boost::numeric::ublas::unbounded_array<T> &)'
        with
        [
            T=size_t
        ]
        C:\Boost\include\boost-1_34_1\boost/numeric/ublas/matrix_sparse.hpp(2513)
: see reference to class template instantiation
'boost::numeric::ublas::unbounded_array<T>' being compiled
        with
        [
            T=size_t
        ]
        C:\cygwin\home\alessio\dolfin\src\kernel\la\dolfin/uBlasMatrix.h(41)
: see reference to class template instantiation
'boost::numeric::ublas::compressed_matrix<T,L>' being compiled
        with
        [
            T=double,
            L=boost::numeric::ublas::row_major
        ]
        C:\cygwin\home\alessio\dolfin\src\kernel\la\dolfin/Matrix.h(99) :
see reference to class template instantiation
'dolfin::uBlasMatrix<Mat>' being compiled
        with
        [
            Mat=dolfin::ublas_sparse_matrix
        ]
C:\Program\Microsoft Visual Studio 8\VC\include\xutility(2404) : warning
C4996: 'std::_Copy_backward_opt' was declared deprecated
        C:\Program\Microsoft Visual Studio 8\VC\include\xutility(2391) :
see declaration of 'std::_Copy_backward_opt'
        Message: 'You have used a std:: construct that is not safe. See
documentation on how to use the Safe Standard C++ Library'
        C:\Boost\include\boost-1_34_1\boost/numeric/ublas/matrix_sparse.hpp(2782)
: see reference to function template instantiation '_BidIt2
std::copy_backward<unsigned int*,unsigned
int*>(_BidIt1,_BidIt1,_BidIt2)' being compiled
        with
        [
            _BidIt2=unsigned int *,
            _BidIt1=unsigned int *
        ]
        C:\Boost\include\boost-1_34_1\boost/numeric/ublas/matrix_sparse.hpp(2763)
: while compiling class template member function 'double
&boost::numeric::ublas::compressed_matrix<T,L>::insert_element(unsigned
int,unsigned int,const double &)'
        with
        [
            T=double,
            L=boost::numeric::ublas::row_major
        ]
C:\Program\Microsoft Visual Studio 8\VC\include\xutility(2404) : warning
C4996: 'std::_Copy_backward_opt' was declared deprecated
        C:\Program\Microsoft Visual Studio 8\VC\include\xutility(2391) :
see declaration of 'std::_Copy_backward_opt'
        Message: 'You have used a std:: construct that is not safe. See
documentation on how to use the Safe Standard C++ Library'
        C:\Boost\include\boost-1_34_1\boost/numeric/ublas/matrix_sparse.hpp(2785)
: see reference to function template instantiation '_BidIt2
std::copy_backward<double*,double*>(_BidIt1,_BidIt1,_BidIt2)'
being compiled
        with
        [
            _BidIt2=double *,
            _BidIt1=double *
        ]

The dolfin files are in acygwin path but I havent used it to compile
dolfin, nor I used it to compile ublas. Despite these messages, the
program compiles, while with a standard ublas version (i.e. the one
downloaded by cygwin) it does not.

Alessio



References