NetCDF-C++
  1. NetCDF-C++
  2. NCCPP-4

Compile error: simple_xy_wr.cpp:19:23: fatal error: netcdfcpp.h: No such file or directory

    Details

    • Type: Bug Bug
    • Status: Closed (View Workflow)
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 4.2
    • Fix Version/s: 4.2
    • Labels:
      None
    • Environment:
      Fedora Rawhide

      Description

      Trying to build I get the following in make check:

      make[1]: Entering directory `/builddir/build/BUILD/netcdf-cxx-4.2-beta2/examples'
      make simple_xy_wr simple_xy_rd sfc_pres_temp_wr sfc_pres_temp_rd pres_temp_4D_wr pres_temp_4D_rd
      make[2]: Entering directory `/builddir/build/BUILD/netcdf-cxx-4.2-beta2/examples'
      g++ -DHAVE_CONFIG_H -I. -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c -o simple_xy_wr.o simple_xy_wr.cpp
      simple_xy_wr.cpp:19:23: fatal error: netcdfcpp.h: No such file or directory
      compilation terminated.
      make[2]: Leaving directory `/builddir/build/BUILD/netcdf-cxx-4.2-beta2/examples'

      It should look for netcdfcpp.h in the ../cxx directory I think.

        Activity

        Hide
        Ed Hartnett added a comment -
        Fixed in code base and beta3 release.
        Show
        Ed Hartnett added a comment - Fixed in code base and beta3 release.
        Hide
        Orion Poplawski added a comment -
        This isn't fixed for me with the 4.2 release:

        g++ -DHAVE_CONFIG_H -I. -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c -o simple_xy_wr.o simple_xy_wr.cpp
        simple_xy_wr.cpp:19:23: fatal error: netcdfcpp.h: No such file or directory
        compilation terminated.

        It really needs -I../src. Makefile.am somehow needs to be told in needs the includes in that directory.
        Show
        Orion Poplawski added a comment - This isn't fixed for me with the 4.2 release: g++ -DHAVE_CONFIG_H -I. -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c -o simple_xy_wr.o simple_xy_wr.cpp simple_xy_wr.cpp:19:23: fatal error: netcdfcpp.h: No such file or directory compilation terminated. It really needs -I../src. Makefile.am somehow needs to be told in needs the includes in that directory.
        Hide
        Orion Poplawski added a comment -
        Sorry, -I../cxx
        Show
        Orion Poplawski added a comment - Sorry, -I../cxx
        Hide
        Ed Hartnett added a comment -
        Hmmm, not quite sure how I missed that! Must be one of these .h files hanging around on my system somewhere.

        I have fixed and done a sneaky re-release!

        Show
        Ed Hartnett added a comment - Hmmm, not quite sure how I missed that! Must be one of these .h files hanging around on my system somewhere. I have fixed and done a sneaky re-release!
        Hide
        Orion Poplawski added a comment -
        Yup, that did it. Thanks!
        Show
        Orion Poplawski added a comment - Yup, that did it. Thanks!

          People

          • Assignee:
            Ed Hartnett
            Reporter:
            Orion Poplawski
          • Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development