Installation of dolfin-1.3.0 in Windows (cygwin)

Asked by Richard on 2014-03-09

I tried to build dolfin (v 1.3.0) from source on Windows (cygwin). I successfully installed petsc, boost, and other dependencies. Configuration for dolfin was also successful.
However on executing make, the error message shown below appears on the first file that is compiled. It seems to be an error related to use of C++, in particular on the expressions used with an _.
For example the complains about the _ in _L, calling it an "expected unqualified-id before numeric constant"
boost::shared_ptr<const Form> _L;
However I have used the boost::shared_ptr in other codes including expressions like _L without any issues.
Has this error been seen before? Also do you support running on fenics on Cygwin? This seems to be a simple problem to fix but have not been able to fix it. Any suggestions will be helpful.

In file included from /home/RichardUpton/software_downloads/dolfin-1.3.0/dolfin/adaptivity/adapt.cpp:28:0:
/home/RichardUpton/software_downloads/dolfin-1.3.0/dolfin/fem/LinearVariationalProblem.h:102:35: error: expected unqualified-id before numeric constant
In file included from /home/RichardUpton/software_downloads/dolfin-1.3.0/dolfin/adaptivity/adapt.cpp:41:0:
/home/RichardUpton/software_downloads/dolfin-1.3.0/dolfin/adaptivity/ErrorControl.h:231:44: error: expected unqualified-id before numeric constant
/home/RichardUpton/software_downloads/dolfin-1.3.0/dolfin/adaptivity/ErrorControl.h:232:44: error: expected unqualified-id before numeric constant
dolfin/CMakeFiles/dolfin.dir/build.make:57: recipe for target `dolfin/CMakeFiles/dolfin.dir/adaptivity/adapt.cpp.o' failed
make[2]: *** [dolfin/CMakeFiles/dolfin.dir/adaptivity/adapt.cpp.o] Error 1
CMakeFiles/Makefile2:202: recipe for target `dolfin/CMakeFiles/dolfin.dir/all' failed
make[1]: *** [dolfin/CMakeFiles/dolfin.dir/all] Error 2
Makefile:116: recipe for target `all' failed
make: *** [all] Error 2

Thanks and best regards.

Question information

Language:
English Edit question
Status:
Answered
For:
FEniCS Project Edit question
Assignee:
No assignee Edit question
Last query:
2014-03-09
Last reply:
2014-03-10
Johannes Ring (johannr) said : #1

FEniCS no longer uses Launchpad for Questions & Answers. Please consult the documentation on the FEniCS web page for where and how to (re)post your question: http://fenicsproject.org/support/

Can you help with this problem?

Provide an answer of your own, or ask Richard for more information if necessary.

To post a message you must log in.