← Back to team overview

dolfin team mailing list archive

Re: MS visual studio C++ 8

 

> Alessio Quaglino wrote:
>>> 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
>>
>>
>> I'm compiling under VS and correcting platform-dependent errors step by
>> step. These are some notes/questions:
>>
>> - I got more than 1000 warnings for the uBlas interface
>> - I've found an error in loggermanager.cpp where "log" should be
>> replaced
>> by "logger" (I don't know why this does not raise an error while
>> compiling
>> under unix)
>
> ok.

I had to remove loggermanager.cpp anyway since I had some linking problem
in the objects


>> - I had to substitute all the "and" with "&&" (just in case you want to
>> do
>> it directly in the repositories)
>
> Where is this used?

In all the files generated by FFC (and thus also in the elements
collection in src/kernel/element)


>> - I couldn't find a windows equivalent of isnormal() present in
>> timeslabsolver.cpp
>
> Looks like we could replace it with
>
> inline bool my_isnan(double x)
> {
>     return x != x;
> }
>
> See http://www.parashift.com/c++-faq-lite/newbie.html

Ok I'll do that, though I'm not using the time slab solver


>> - I don't know how to set the variable DOLFIN_VERSION present in
>> init.cpp
>
> DOLFIN_VERSION is a #define (see src/kernel/main/dolfin/constants.h).
>
> It would be helpful if you submitted your fixes as an hg bundle (or a
> series of small bundles, one for each set of fixes). I'm on parental
> leave until the end of November so I have limited bandwidth, but someone
> else should be able to pick it up.

Ok as soon as I manage to compile and link it with umfpack 4.6 and
ATLAS-BLAS I can write a small wiki if you want, since there are not a lot
of changes, but there are some dependencies to know (and also the very
very boring task to copy the source files from each dolfin subfolder).

Alessio


> /Anders
>
>
>> Alessio
>>
>>
>>
>> _______________________________________________
>> DOLFIN-dev mailing list
>> DOLFIN-dev@xxxxxxxxxx
>> http://www.fenics.org/mailman/listinfo/dolfin-dev
>
>




Follow ups

References