1. Prerequisite
Following tools and libraries install in mingw64: flex, yacc, zlib, pthread, mpi
2. Modify the Makefile.inc
Based upon file Makfile.inc.i686_pc_mingw32, modify in follows
1) Add -Drestrict=__restrict into CFLAGS_DEF
2) Modify -lmpich2mt in LDFLAGS into -lmpicxx
3) Modify pthread library into what you have installed
3. Add following into common.h
#ifndef HAVE_STDINT_H
#define HAVE_STDINT_H 1
#endif /* HAVE_STDINT_H */
#ifndef HAVE_UINT_T
#define HAVE_UINT_T 1
#endif /* HAVE_UINT_T */
Then, everything ok!
没有评论:
发表评论