Go Back   HDF-EOS Forums > Old Forum Archive > General Questions

 
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-29-2003, 09:14 PM
wyjxy1979 wyjxy1979 is offline
Junior Member
 
Join Date: Sep 2003
Posts: 19
Default about VCand HDF

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  
Old 12-30-2003, 12:47 AM
zninny zninny is offline
Junior Member
 
Join Date: Dec 2003
Posts: 2
Default about VCand HDF

Select

Project ->settings ->Link

Enter "hd415.lib hm415.lib ws2_32.lib" at the beginning of the "Object/library modules" line.
  #3  
Old 12-30-2003, 03:13 AM
wyjxy1979 wyjxy1979 is offline
Junior Member
 
Join Date: Sep 2003
Posts: 19
Default about VCand HDF

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  
Old 01-05-2004, 08:55 AM
wangwm wangwm is offline
Junior Member
 
Join Date: Feb 2003
Posts: 10
Default Re: about VCand HDF

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

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 12:11 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
About Us | Contact Info | Archive Info | Disclaimer
Sponsored by NASA Cooperative Agreement Grant Number NNX08AO77A / Maintained by The HDF Group