Add Windows 64-bit build support (MinGW-w64 gfortran)#22
Open
aminkvh wants to merge 1 commit into
Open
Conversation
- Add machine_dep.win64: Windows machine-dependency routines - Replaces Unix 'date' shell call with portable DATE_AND_TIME() intrinsic - DTILDA() is a no-op (tilde paths not applicable on Windows) - Removes READONLY/SHARED keywords incompatible with gfortran on Windows - Add build_windows.ps1: PowerShell build script for MinGW-w64 - Statically linked executables, no DLL dependencies at runtime - Builds all 13 HOLE2 programs - Fix cguess.f: replace REAL DO loop control variable with INTEGER - REAL loop variable causes silent crash in gfortran 16 on Windows - Behavior identical, fix is standards-compliant on all platforms - Fix hp_flush.c: add flush_() alias for gfortran name-mangling - Add README_windows.md: Windows build and usage instructions Tested: GNU Fortran 16.1.0 (MSYS2/MinGW-w64), Windows 10 x64 Verified with gramicidin 1GRM example (Rmin=1.198 Ang, normal completion) Closes osmart#16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Windows 64-bit Build Support
Adds native Windows 64-bit compilation support using MinGW-w64 gfortran. All 13 HOLE2 executables build and run successfully.
Changes
src/machine_dep.win64dateshell call withDATE_AND_TIME()intrinsic;DTILDA()is a no-opsrc/build_windows.ps1src/cguess.fDO RCOUNT=-5.,5.,1.) which causes a silent crash in gfortran 16 on Windows; fix is standards-compliant on all platformssrc/hp_flush.cflush_()alias for gfortran name-mangling on WindowsREADME_windows.mdHow the Linux build is unaffected
The build script copies
machine_dep.win64→machine_dep.fbefore compiling. The existingmachine_dep.g77and the Makefile are untouched. Thecguess.ffix is backward-compatible.Tested
Closes #16