|
#1
|
|||
|
|||
|
hello everyone:
I want to open and read the ASTER hdf file.but when I do this,there are three errors.who can help me ? thank you ! #include "mfhdf.h" #define FILE_NAME "D:\wangyajuan\quzhouaster\pg-PR1B0000-2002042902_029_001.hdf" #define X_LENGTH 4 #define Y_LENGTH 5 #define Z_LENGTH 6 #define RANK 3 main( ) .. . . . .--------------------Configuration: hdf2gif - Win32 Debug-------------------- Compiling... hdf2gif.c Linking... HM415d.lib(xdrposix.obj) : error LNK2001: unresolved external symbol _ntohl@4 HM415d.lib(xdrposix.obj) : error LNK2001: unresolved external symbol _htonl@4 .hdf2gifDebug/hdf2gif.exe : fatal error LNK1120: 2 unresolved externals Error executing link.exe. hdf2gif.exe - 3 error(s), 7 warning(s) If you know this,please write a letter to me .thank you ! hqh20000@263.net |
|
#2
|
|||
|
|||
|
Select
Project ->settings ->Link Enter "hd415.lib hm415.lib ws2_32.lib" at the beginning of the "Object/library modules" line. |
|
#3
|
|||
|
|||
|
thank you for your reply!
I link the lib,but there are still three errors.I don't know what is wrong? Is it because there is not the enough space or the ASTER HDF file is not in the place same to the VC++? thank you ! |
|
#4
|
|||
|
|||
|
Hi,wyjxy1979
These are Winsock functions.Ws2_32.lib should be included in your project "setting"->"link"->Library option. Good Luck! Wang Weimin ----------------------------------- WaterCenter,Institute of Geo. Sci. & Nature Resource Research, Chinese Academy of Science, Beijing,100101,China E_Mail: wangwm@igsnrr.ac.cn, wangwm@igsnrr.cn, towangwm@hotmail.com Tel:86-10-64889762-500 ----------------------------------- http://qtirsl.igsnrr.ac.cn eostools@eos.nasa.gov дµÀ£º > > > ==== > This message was posted by wyjxy1979 > You can view it at: > http://hdfeos.gsfc.nasa.gov/hdfeos/f...&threadid=3386 > > ==== > > hello everyone: > I want to open and read the ASTER hdf file.but when I do this,there > are three errors.who can help me ? > thank you ! > #include "mfhdf.h" > #define FILE_NAME > "D:\wangyajuan\quzhouaster\pg-PR1B0000-2002042902_029_001.hdf" > #define X_LENGTH 4 > #define Y_LENGTH 5 > #define Z_LENGTH 6 > #define RANK 3 > main( ) > .. > . > . > . > .--------------------Configuration: hdf2gif - Win32 > Debug-------------------- > Compiling... > hdf2gif.c > Linking... > HM415d.lib(xdrposix.obj) : error LNK2001: unresolved external symbol > _ntohl@4 > HM415d.lib(xdrposix.obj) : error LNK2001: unresolved external symbol > _htonl@4 > .hdf2gifDebug/hdf2gif.exe : fatal error LNK1120: 2 unresolved > externals > Error executing link.exe. > > hdf2gif.exe - 3 error(s), 7 warning(s) > > If you know this,please write a letter to me .thank you ! > hqh20000@263.net |