[Mapserver-users] WMS support when building mapserver with VC++6.0

Swaminathan, Gayathri gayathri at ou.edu
Mon Apr 28 17:00:22 EDT 2003


Hi,
I am trying to get WMS_CLIENT support with Mapserver -3.6.5

I seem to get an error at,

../libwww/library/src\HTHstMan.h(94) : error C2079: 'sock_addr' is used in
undefined struct 'sockaddr_in'
So, I view my HTHstMan.h and see that wwwsys.h is the actual file using
sockaddr_in, as below
	#ifdef DECNET
	typedef struct sockaddr_dn SockA;  /* See netdnet/dn.h or custom
vms.h */
	#else /* Internet */
	typedef struct sockaddr_in SockA;  /* See netinet/in.h */
	#endif
So, I opened up in.h of my cygwin installation and grabbed the following
lines that declares sockaddr_in,

// Added Gayathri
struct in_addr {
	unsigned int	s_addr;
};
/* Structure describing an Internet (IP) socket address. */
#define __SOCK_SIZE__	16		/* sizeof(struct sockaddr)	*/
struct sockaddr_in {
  short int		sin_family;	/* Address family		*/
  unsigned short int	sin_port;	/* Port number			*/
  struct in_addr	sin_addr;	/* Internet address		*/

  /* Pad to size of `struct sockaddr'. */
  unsigned char		__pad[__SOCK_SIZE__ - sizeof(short int) -
			sizeof(unsigned short int) - sizeof(struct
in_addr)];
};
#define sin_zero	__pad		/* for BSD UNIX comp. -FvK	*/

//End of added Gayathri

I am now getting this error.,

   Creating library mapserv.lib and object mapserv.exp
mapserver.lib(mapwmslayer.obj) : error LNK2001: unresolved external symbol
_index
mapserv.exe : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'

What is that am missing out. I sincerely appreciate any help and thanks for
your time on this.
Thanks,
Gayathri Swaminathan
Geo Information Systems
University Of Oklahoma
(405) 325-3131x237
---------------------------------------
~A diamond was only a piece of 
coal that did well under pressure




More information about the mapserver-users mailing list