Hi Stanislav, >-----Original Message----- >From: [email protected] [mailto:hdf-forum- >[email protected]] On Behalf Of [email protected] >Sent: Wednesday, May 04, 2011 11:09 AM >To: [email protected] >Subject: [Hdf-forum] error compiling hdf5 sample program on windows ,with >vs2008 > >Error 2 error LNK2019: unresolved external symbol _H5Fclose >referenced in function _main ex_table_01.obj CreateHDF5 > > >I had created a simple project with ex_table_01.c as example >I am linking all the hdf5 libraries - hdf5.lib hdf5_cpp.lib hdf5_hl.lib >hdf5_hl_cpp.lib libszip.lib zlib.lib hdf5_tools.lib
You are using the HDF5 C library, so you shouldn't need to link with cpp, tools, and hl libraries. You can add them later when you need them. You might need to check on the Reference. Also, you might want to read through the install instruction for VS2008 if you haven't. Binh-Minh > >But still getting an error... >Very strange, anybody had any idea? > > > > >_______________________________________________ >Hdf-forum is for HDF software users discussion. >[email protected] >http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org > > >-- >Internal Virus Database is out-of-date. >Checked by AVG. >Version: 7.5.549 / Virus Database: 270.9.0/1778 - Release Date: 11/9/2008 >2:14 PM _______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
