投稿者 トピック: [Nettool makefile] MingWでのコンパイルには lwsock32が必要  (参照数 5455 回)

z9999+

  • 管理人
  • 急行
  • *
  • 投稿: 381
Nettool makefile for MingW needs wsock32.

引用
ifeq ($(OSTYPE),mingw)
  CC ?= gcc
  OS_OPT   ?= -mno-cygwin -march=pentium
  # we need the libraries EXACTLY in this order to link
  STD_LIBS = -lmingw32 -lstdc++ -lwsock32
endif

And this is not an error, but curses doesn't need for MingW.

引用
g++.exe: -lcurses: linker input file unused because linking not done
===> LD  ../build/default/nettool/nettool