-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: conflicting types for 'getopt' #1737
Comments
MSYS indicates your are compiling with mIngw, correct?
|
Thanks a lot, I confirm that it works now!! (and you are right, I do use mingw with MSYS2.) Pesonnally, I only use Linux, but our group tries to support people using Windows with our tools (in Fortran https://github.com/aida-alvera/DINEOF, or Julia https://github.com/Alexander-Barth/NCDatasets.jl). Obviously, this is at much smaller scale than Unidata :-) For Fortran and Julia we are required to use the mingw tool chain (as opposed to msvc). The R and Octave communites are in the same case, where they use Mingw on Windows. Would it be useful to setup some CI service to test Mingw? I can try to make some pull requests. MSYS2 is already integrated in appveyor.com (https://www.appveyor.com/docs/windows-images-software/#mingw-msys-cygwin) but it should also be possible get installed on travis CI (https://docs.travis-ci.com/user/reference/windows/#how-do-i-use-msys2). Using a different CI service for windows has the slight advantage that it does not slow down your travis builds for your primary build platform. But there are then two places to check if it the build passes. |
This is a problem that has cropped up and I thought we had caught all Instances. |
Fixed by #1738? |
netcdf-c-4.7.4
Windows 10 with MSYS2 and gcc 10.1.0
I try to compile netCDF from source but the compilation fails with the error message below.
To reproduce the error, one need to run inside the MSYS2 shell the following steps:
The last make command fails with the error message:
In
config.log
I see the following options related to getopt.Finally the
ac_cv_header_getopt_h
macro it set toyes
.The text was updated successfully, but these errors were encountered: