← Back to team overview

dolfin team mailing list archive

Build error on Windows

 

Hi,

I get the error below when trying to build DOLFIN on Windows. It is a
fresh hg clone and all optional dependencies are turned off. MPI is not
installed (yet).

Any ideas?

Johannes

swig -o dolfin\swig\cpp_wrap.cc -python -c++ -shadow -Iinclude\swig
-IC:\Python25\include -IC:\Python25\lib\site-packages\numpy\core\include
-Ic:\johannr\jhbuildbot\fenics\include -IC:\Python25\include
-Ic:\local\src\boost_1_35_0\ -Ic:\local\include dolfin\swig\dolfin.i
dolfin\main\MPI.h(56): Warning(509): Overloaded method
dolfin::MPI::send_recv(double *,dolfin::uint,dolfin::uint,double
*,dolfin::uint,dolfin::uint) is shadowed by
dolfin::MPI::send_recv(dolfin::uint
*,dolfin::uint,dolfin::uint,dolfin::uint *,dolfin::uint,dolfin::uint) at
dolfin\main\MPI.h:52.
c++ -o dolfin\swig\cpp_wrap.o -c -Wall -pipe -ansi -Werror -DDEBUG -g
-DNDEBUG -O2 -DPACKAGE_VERSION=\"0.8.1\" -fno-strict-aliasing -I.
-IC:\johannr\jhbuildbot\fenics\include -IC:\local\src\boost_1_35_0
-IC:\local\include -IC:\Python25\include -IC:\Python25\include
-IC:\Python25\lib\site-packages\numpy\core\include
-IC:\johannr\jhbuildbot\fenics\include -IC:\Python25\include
-IC:\local\src\boost_1_35_0 -IC:\local\include dolfin\swig\cpp_wrap.cc
c++ -shared -Wl,--enable-auto-import -o dolfin\swig\_cpp.pyd
dolfin\swig\cpp_wrap.o -Ldolfin -LC:\Python25\libs -LC:\Python25\libs
-LC:\local\bin -LC:\local\lib -lpython25 -lpython25 -lxml2 -ldolfin
-Wl,--out-implib,dolfin\swig\libcpp.a -Wl,--output-def,dolfin\swig\cpp.def
scons: building terminated because of errors.
Creating library file: dolfin\swig\libcpp.a
dolfin\swig\cpp_wrap.o: In function
`wrap_MPI_send_recv__SWIG_1':dolfin/swig/cpp_wrap.cc:62968: undefined
reference to `dolfin::MPI::send_recv(double*, unsigned int, unsigned int,
double*, unsigned int, unsigned int)'
dolfin\swig\cpp_wrap.o: In function
`wrap_MPI_send_recv__SWIG_0':dolfin/swig/cpp_wrap.cc:62872: undefined
reference to `dolfin::MPI::send_recv(unsigned int*, unsigned int, unsigned
int, unsigned int*, unsigned int, unsigned int)'
dolfin\swig\cpp_wrap.o: In function
`wrap_MPI_gather':dolfin/swig/cpp_wrap.cc:62774: undefined reference to
`dolfin::MPI::gather(std::vector<unsigned int, std::allocator<unsigned
int> >&)'
dolfin\swig\cpp_wrap.o: In function
`wrap_MPI_distribute__SWIG_0':dolfin/swig/cpp_wrap.cc:62620: undefined
reference to `dolfin::MPI::distribute(std::vector<unsigned int,
std::allocator<unsigned int> >&, std::vector<unsigned int,
std::allocator<unsigned int> >&)'
dolfin\swig\cpp_wrap.o: In function
`wrap_MPI_distribute__SWIG_1':dolfin/swig/cpp_wrap.cc:62679: undefined
reference to `dolfin::MPI::distribute(std::vector<double,
std::allocator<double> >&, std::vector<unsigned int,
std::allocator<unsigned int> >&)'
collect2: ld returned 1 exit status
scons: *** [dolfin\swig\_cpp.pyd] Error 1




Follow ups