From f9a515efd37dc3515b6cddc4a00c645bce40f8a5 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer <akohlmey@gmail.com> Date: Thu, 10 Aug 2017 07:24:24 -0400 Subject: [PATCH] add some remarks about makefile settings on windows --- doc/src/Section_start.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/doc/src/Section_start.txt b/doc/src/Section_start.txt index 714ef0a898..6eef155be2 100644 --- a/doc/src/Section_start.txt +++ b/doc/src/Section_start.txt @@ -658,7 +658,16 @@ utilities. For Cygwin and the MinGW cross-compilers, suitable makefiles are provided in src/MAKE/MACHINES. When using other compilers, like Visual C++ or Intel compilers for Windows, you may have to implement -your own build system. Since none of the current LAMMPS core developers +your own build system. Due to differences between the Windows OS +and Windows system libraries to Unix-like environments like Linux +or MacOS, when compiling for Windows a few adjustments may be needed: + +Do not set the -DLAMMPS_MEMALIGN define (see LMP_INC makefile variable) +Add -lwsock32 -lpsapi to the linker flags (see LIB makefile variable) +Try adding -static-libgcc or -static or both to the linker flags when your +LAMMPS executable complains about missing .dll files :ul + +Since none of the current LAMMPS core developers has significant experience building executables on Windows, we are happy to distribute contributed instructions and modifications, but we cannot provide support for those. -- GitLab