[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #TDD-135020]: make error



> Dear support team,
>
> I'm new in linux and netcdf format files.
>
> I try compile netcdf-3.6.2 with fedora 9 64 bit linux and ifort
> compiler.
>
> ./configure
> make check install
>
> I have received error message after "make" command:
>
> sfc_pres_temp_rd.cpp: In function int main():
> sfc_pres_temp_rd.cpp:123: error: strlen was not declared in this scope
> sfc_pres_temp_rd.cpp:123: error: strncmp was not declared in this
> scope
> sfc_pres_temp_rd.cpp:133: error: strlen was not declared in this scope
> sfc_pres_temp_rd.cpp:133: error: strncmp was not declared in this
> scope
> sfc_pres_temp_rd.cpp:141: error: strlen was not declared in this scope
> sfc_pres_temp_rd.cpp:141: error: strncmp was not declared in this
> scope
> sfc_pres_temp_rd.cpp:149: error: strlen was not declared in this scope
> sfc_pres_temp_rd.cpp:149: error: strncmp was not declared in this
> scope
> make[3]: *** [sfc_pres_temp_rd.o] Error 1
> make[3]: Leaving directory `/usr/local/netcdf-3.6.2/examples/CXX'
> make[2]: *** [check-am] Error 2
> make[2]: Leaving directory `/usr/local/netcdf-3.6.2/examples/CXX'
> make[1]: *** [check-recursive] Error 1
> make[1]: Leaving directory `/usr/local/netcdf-3.6.2/examples'
> make: *** [check-recursive] Error 1
>
> What i need to do?
>
> Thanks in advance,
>
> Dmitry.
>
>
>
>

Howdy Dmitry!

You are having trouble with the C++ examples. This is a bit odd, since it means
the C++ tests passed, but the examples are failing.

If you are using fortran, you may not even care about C++. In that case, the
easiest solution is to rerun configure, with the --disable-cxx option, and then
run make check again.

If you want the C++ API, read on...

We have recently fixed a C++ string problem, so grab the daily snapshot and see
if it works for you:
ftp://ftp.unidata.ucar.edu/pub/netcdf/snapshot/netcdf-4-daily.tar.gz

If that doesn't work, please send all the information requested here:
http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-install/Troubleshooting.html

Thanks,

Ed

Ticket Details
===================
Ticket ID: TDD-135020
Department: Support netCDF
Priority: Normal
Status: Closed