Chinaunix首页 | 论坛 | 博客
  • 博客访问: 369060
  • 博文数量: 53
  • 博客积分: 1411
  • 博客等级: 上尉
  • 技术积分: 701
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 14:40
文章分类

全部博文(53)

文章存档

2011年(6)

2010年(20)

2009年(18)

2008年(9)

我的朋友

分类:

2010-03-25 15:33:11

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
-------------------------------------------------------------------

阅读(2153) | 评论(0) | 转发(0) |
0

上一篇:qmake用户手册

下一篇:printf 终端输出控制

给主人留下些什么吧!~~