Jump to content

f00bard

Members
  • Content Count

    2
  • Joined

  • Last visited

  1. Yeah... I gave that a shot earlier. It blows up but in a different manner: gcc -DUSE_READLINE -O1 -Wall -Wno-char-subscripts -ggdb -I. -Isimio -Iformats -Idrivers -Iutil -Iui -DLIB_DIR=\"/usr/local/lib/\" -o ui/main.o -c ui/main.c In file included from util/sockets.h:23, from ui/main.c:41: /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:103:2: w arning: #warning "fd_set and associated macros have been defined in sys/types. This may cause runtime problems with W32 sockets" In file included from util/sockets.h:23, from ui/main.c:41: /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:635: err or: conflicting types for 'gethostname' /usr/include/sys/unistd.h:232: error: previous declaration of 'gethostname' was here /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:635: err or: conflicting types for 'gethostname' /usr/include/sys/unistd.h:232: error: previous declaration of 'gethostname' was here make: *** [ui/main.o] Error 1
  2. Hi all, I've used CCS in the past but would like to start using the open source toolchains for my compiles. I'm trying to get mspdebug to build on Windows. I'm using an up-to-date Cygwin (Setup version 2.738) on Windows 7 64-bit. I'm trying to compile mspdebug-0.18. I get the following error: gcc -DUSE_READLINE -O1 -Wall -Wno-char-subscripts -ggdb -I. -Isimio -Iformats -Idrivers -Iutil -Iui -DLIB_DIR=\"/usr/local/lib/\" -o ui/main.o -c ui/main.c ui/main.c: In function `sockets_init': ui/main.c:312: error: `WSADATA' undeclared (first use in this function) ui/main.c:312: error: (Each undeclared identifier is reported only once ui/main.c:312: error: for each function it appears in.) ui/main.c:312: error: parse error before "data" ui/main.c:314: warning: implicit declaration of function `WSAStartup' ui/main.c:314: error: `data' undeclared (first use in this function) ui/main.c: In function `sockets_exit': ui/main.c:324: warning: implicit declaration of function `WSACleanup' make: *** [ui/main.o] Error 1 I'm at a loss. The utils/sockets.c file includes the winsock2.h file, which is where that structure is defined. Google doesn't turn up much Any help is appreciated!
×