Hello, My apologies for the delayed response. Unfortunately, we do not currently have formal support for netCDF-Fortran on Windows using the Visual Studio compilers. Depending on your environment and compiler, we may be able to get things working, but the pre-built libraries you installed assume that you are working with Microsoft Visual Studio. The config.log file you provided appears to show you are working in a Cygwin environment. This should be pretty straightforward; you'll need to install the appropriate packages (zlib, hdf5) and then compile and install libnetcdf manually. You should then be able to compile and link the netCDF-Fortran library against it. If you need help with the specifics, please let me know, but I think the root of the issue right now is that you are trying to link against a library that was not built for the compiler you are using. I hope this helps! -Ward > Hi, > > I am having issues building the NetCDF Fortran library. I installed > a pre-build windows library for NetCDF C but can't build the Net CDF > Fortran library. I have tried many many things to get this to work > including reading and trying everything relevant that has been posted on > the topic and trying different combinations of LIBS flags. The attempt > that I have attached the log for is with all possible lib flags included > for LIBS. I can get past the present error by omitting the '-lcurl_imp' > flag (which is recommended to include by nc-config) but then I get > another problem later on which is .... > > "checking for library containing nc_open... no" > > One thing I note is that there is a 'libcurl_imp.lib' file in /lib but > there is no corresponding 'libcurl_imp.dll' file in /bin (where as there > is for other flags. > > I have tried just including just "-lnetcdf -lhdf5_hl -lhdf5 -lcurl_imp" > which is what nc-config recommends for my install but this doesn't work > again due to the '-lcurl_imp' flag although as I said the libcurl_imp.lib > is definitely there in /lib. > > Any help would be very much appreciated, > > Regards > > Neil Dickson > > Postdoctoral Researcher - Coastal Modelling > School of Ocean Sciences > Bangor University > > Tel: 07813 379159 > > https://plasticvectors.stir.ac.uk/<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplasticvectors.stir.ac.uk%2F&data=02%7C01%7Cn.dickson%40bangor.ac.uk%7C0cf6468947984045cf7208d8079361ff%7Cc6474c55a9234d2a9bd4ece37148dbb2%7C0%7C0%7C637267676876103777&sdata=joxW7W%2Fl5oeRMMeTbH5VtdmhNTClxIQ8eSmAI9Cyw%2B8%3D&reserved=0> > https://www.bangor.ac.uk/oceansciences/ > > > > > Mae croeso i chi gysylltu gyda'r Brifysgol yn Gymraeg neu Saesneg > > You are welcome to contact the University in Welsh or English > > Rhif Elusen Gofrestredig 1141565 - Registered Charity No. 1141565 > > Gall y neges e-bost hon, ac unrhyw atodiadau a anfonwyd gyda hi, gynnwys > deunydd cyfrinachol ac wedi eu bwriadu i'w defnyddio'n unig gan y sawl y > cawsant eu cyfeirio ato (atynt). Os ydych wedi derbyn y neges e-bost hon trwy > gamgymeriad, rhowch wybod i'r anfonwr ar unwaith a dilewch y neges. Os na > fwriadwyd anfon y neges atoch chi, rhaid i chi beidio a defnyddio, cadw neu > ddatgelu unrhyw wybodaeth a gynhwysir ynddi. Mae unrhyw farn neu safbwynt yn > eiddo i'r sawl a'i hanfonodd yn unig ac nid yw o anghenraid yn cynrychioli > barn Prifysgol Bangor. Nid yw Prifysgol Bangor yn gwarantu bod y neges e-bost > hon neu unrhyw atodiadau yn rhydd rhag firysau neu 100% yn ddiogel. Oni bai > fod hyn wedi ei ddatgan yn uniongyrchol yn nhestun yr e-bost, nid bwriad y > neges e-bost hon yw ffurfio contract rhwymol - mae rhestr o lofnodwyr > awdurdodedig ar gael o Swyddfa Cyllid Prifysgol Bangor. > > This email and any attachments may contain confidential material and is > solely for the use of the intended recipient(s). If you have received this > email in error, please notify the sender immediately and delete this email. > If you are not the intended recipient(s), you must not use, retain or > disclose any information contained in this email. Any views or opinions are > solely those of the sender and do not necessarily represent those of Bangor > University. Bangor University does not guarantee that this email or any > attachments are free from viruses or 100% secure. Unless expressly stated in > the body of the text of the email, this email is not intended to form a > binding contract - a list of authorised signatories is available from the > Bangor University Finance Office. > > Ticket Details =================== Ticket ID: ULU-699966 Department: Support netCDF Priority: Normal Status: Closed =================== NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.