Uploaded image for project: 'Software Support'
  1. Software Support
  2. SUP-1343

GRIBAPI: Compiling in Visual Studio 2013 (Express)

XMLWordPrintable

    • Member State Other

      Dear ECMWF-Team,

      first I want to thank you for your work creating a Visual Studio Project. I tried it and it compiled fine in VS 2008 (Express) and 2010 (Express).
      Unfortunately it did not compile on VS 2013 (Express) which is the only available tool for new developers (in fact you can download VS 2010 Express but not register, so the tool works only for 30 days).

      I found out that the only problem not compiling in VS 2013 is, that in older Visual C++ implementation the function "rint" was not implemented in the math.h but in 2013 it is.
      To make it compile on 2013 I simple modified to files in the src-folder:

      • grib_api_internal.h
      • grib_util.c
        (both of them are in the main project "grib_api_lib").

      To make sure that it compiles in all known version of Visual Studio I included to lines that check the compiler version (#if _MSC_VER < 1800) because VS 2013 is VER==1800.
      Maybe you could add a note at your download-page that Visual Studio 2013 will convert the project (than you could not open it with older versions) but the conversion process is automated and I did not encounter any problems (some warnings, but nothing critical).

      Attached are the two modified files, if you wish you can use it for future releases. I tested it on VS 2013 and VS 2008 and it works.

      Regards,
      Guenther.

            usv Daniel Varela Santoalla
            guenther.heidel@ghmw.de Guenther Heidel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: