Dear all,

I am trying to compile and link a fortran program under Visual Studio 2010
with Intel Fortran Compiler 13. The  program compiles without errors,
whereas, during linking process it gives two unresolved symbol errors:

Error 1 error LNK2019: unresolved external symbol
_H5LIB_PROVISIONAL_mp_H5OFFSETOF referenced in function _H5WRITE h5write.obj
Error 2 error LNK2019: unresolved external symbol
_H5D_PROVISIONAL_mp_H5DWRITE_PTR referenced in function _H5WRITE h5write.obj

My Linker command line configuration is as follows:

/OUT:"Release\Ec FORT.exe" /INCREMENTAL:NO /NOLOGO /LIBPATH:"C:\Program
Files (x86)\HDF_Group\HDF5\1.8.10\lib" /MANIFEST
/MANIFESTFILE:"C:\Users\ea\Documents\Visual Studio 2010\Projects\Ec FORT\Ec
FORT\Release\Ec FORT.exe.intermediate.manifest"
/MANIFESTUAC:"level='asInvoker' uiAccess='false'" /SUBSYSTEM:CONSOLE
/IMPLIB:"C:\Users\ea\Documents\Visual Studio 2010\Projects\Ec FORT\Ec
FORT\Release\Ec FORT.lib" hdf5_fortrandll.lib hdf5dll.lib
hdf5_f90cstubdll.lib


And my Fortran compiler command line options are:


/nologo /O2 /fpp /I"C:\Program Files
(x86)\HDF_Group\HDF5\1.8.10\include\fortran" /DHDF5F90_WINDOWS
/D_HDF5USEHLDLL_ /module:"Release\\" /object:"Release\\"
/Fd"Release\vc100.pdb" /libs:static /threads /c


I already set the preprocessor definitions
"HDF5F90_WINDOWS;_HDF5USEHLDLL_". THe HDF5 version I use is 1.8.10, which
was compiled from source with Visual Studio 2010 and Intel Fortran Compiler
13. I used Cmake and enabled Fortran2003. I tried many different options to
no avail. Could you make any suggestions, please?


Best,


Ekin
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to