These problems can be resolved by changes to the ./HDF4.1r5/config/mh-linux file. Edit this file, make the necessary changes, then build the software. (Be sure to run "make distclean" if using the same source code as before.)
#LIBSX = -lmRemove the "#" (in other words, uncomment the line):
LIBSX=-lm
# for Sunos and Linux CPPFLAGS_HDF = $(FMPOOL_FLAGS) -DNDEBUG -DHDF -DNO_STRERRORRemove the -DNO_STRERROR option from CPPFLAGS_HDF.
Further above this line it gives more information:
# Additional flags for preproccesor. Some no longer used because # library now requires ANSI compilier. # # for no function prototypes add -DNO_HAVE_PROTOTYPES # for no strerror() add -DNO_STRERROR
./configure -v --prefix=<installpath for HDF> make >& comp.out make test >& test.out make installIf you already built the software once, you should run "make distclean" first.
Following are instructions on using the Intel compiler with MSVC++:
1. Invoke MVSC++ 2. Go to Tools -->Select Compiler; "Selection Tool" window will come up. Check the box with Intel C++ compiler and click OK. Intel C++ compiler now will be used when application is built with MVSC++. 3. To use Fortran Intel compiler do the following: GO to Tools --> Customize... The "Customize" window will come up. Click on "Add-ins and Macros Files" tab and check "Intel Fortran Compiler Build Tool" box