[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

win32-gcc



Hello,
  I'm trying to use the win32 compiler included in debian-1.2.x and
compile some code that uses sockets.  I get the following error
messages, and I wondered if anyone had any hints...

[ begin verbatim errors ]

~> i386-unknown-cygwin32-gcc   mything.o r_stdlib.o desc.o cmf.o   -o mydes
cmf.o(.text+0x44a):cmf.c: undefined reference to `ntohs'
cmf.o(.text+0x49d):cmf.c: undefined reference to `ntohl'
cmf.o(.text+0x563):cmf.c: undefined reference to `ntohl'
collect2: ld returned 1 exit status
make: *** [mydes] Error 1

[ end verbatim errors ]

What's really weird is that "htons" is there, but not "ntohs".

Thanks for any insight.

Later,
	Dale

+--------------------  finger for pgp public key  ---------------------+
| Dale E. Martin | University of Cincinnati Savant Research Laboratory |
| dmartin@ececs.uc.edu    |     http://www.ececs.uc.edu/~dmartin       |
+----------------------------------------------------------------------+


Reply to: