1
select() 在window中链接失败
需要在makefile中添加 -lwsock32
2
qt中,在调试程序的时候,console窗口不出来,可以在projects run settings 中,
设置run in terminal。
3
在qt中定义宏
DEFINES += MY_MYCOR
4 how to build a static library
-------------------------------------------------------------------
QT -= gui
TARGET = lib_a
TEMPLATE = lib
DEFINES += LIB_A_LIBRARY
SOURCES += lib_a.cpp
HEADERS += lib_a.h\
lib_a_global.h
-------------------------------------------------------------------
5
how to build a shared library
-------------------------------------------------------------------
QT -= gui
TARGET = xfer_w32
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
HEADERS += include/transfer_manager.h \
include/transfer_def.h \
include/xfer_common.h \
include/xfer_error.h \
src/common/listop.h \
src/common/llist.h \
src/common/xfer_debug.h \
src/common/transfer_ctrl.h \
src/common/transfer_utils.h \
src/http/http_manager.h \
src/http/http_curl.h \
src/thunder/thunder_manager.h \
src/thunder/embed_thunder.h \
tests/xfer_update.h
SOURCES += src/common/transfer_manager.c \
src/common/transfer_ctrl.c \
src/common/transfer_utils.c \
src/http/http_manager.c \
src/http/http_curl.c \
src/thunder/thunder_manager.c \
tests/xfer_update.c \
tests/xfer_test.c
RESOURCES +=
INCLUDEPATH += include
LIBPATH += lib
LIBS += -lcurldll -lws2_32
DEFINES += XFER_DEBUG
-------------------------------------------------------------------
阅读(2196) | 评论(0) | 转发(0) |