免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库

动态

2015-03-07

2015-01-08

2014-12-21

2014-10-17

2014-10-05

2014-10-02

2014-09-16

2014-08-14

2014-08-02

2014-07-04

2014-07-02

2014-07-01

2014-06-23

2014-06-21

2014-06-19

2014-06-18

2014-06-17

2014-06-11

2014-05-31

2014-05-30

2014-05-23

2014-05-09

2014-04-21

2014-04-20

2014-04-15

  • daxiguagg 发表了新话题 2014-04-15 14:41
    交叉编译 -static问题
    Android上跑C程序。 arm-none-linux-gnueabi-gcc hello.c -o hello -static -static选项在这里是必须的,否则会出现”not found”的错误。 为什么要加- ...

2014-04-11

2014-03-14

  • daxiguagg 发表了新话题 2014-03-14 14:31
    cmake openmp问题?
    linux下编译要加-fopenmp gcc -fopenmp 在CMAKE里怎么写才行。怎么加上这个-fopenmp ????? PROJECT(main) CMAKE_MINIMUM_REQUIRED(VERSION 2. ...

2014-03-10

2014-01-17

2013-12-14

2013-12-06

  • daxiguagg 发表了新话题 2013-12-06 14:28
    yum安装不了
    [root@localhost kkk]# yum install gcc Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile * bas ...

2013-12-04

2013-11-28

2013-09-26

2013-09-25

  • daxiguagg 发表了新话题 2013-09-25 10:53
    free问题?
    线程A,频繁申请内存malloc大概一万次吧。 等线程A执行完后, 线程B执行,释放内存,可以保证确定所有申请的内存都释放了。 为什么进程的占用内存还是很高呢 ...

2013-09-20

2013-09-18

2013-09-09

2013-09-06

  • daxiguagg 发表了新话题 2013-09-06 13:43
    int*问题
    void *buf,*tmpbuf; buf=tmpbuf=calloc(1,100); *(int*)tmpbuf=100; ((int*)tmpbuf)++; //gcc怎么连这个语法也不认识呢,在MS VS上可以通过,不就是转换成int ...

2013-08-21

  • daxiguagg 发表了新话题 2013-08-21 10:35
    epoll问题
    epoll_ctl(epfd, EPOLL_CTL_ADD, sockfd, &ev) epoll_ctl(epfd, EPOLL_CTL_ADD, sockfd, &ev) 可不可以对同一个sockfd添加两次呢? epoll_wait(epfd, event ...

2013-08-13

  • daxiguagg 发表了新话题 2013-08-13 11:05
    socket问题?
    struct sockaddr_in sa; int sockfd; memset(&sa,0,sizeof(struct sockaddr_in)); sa.sin_family=AF_INET; sa.sin_port=htons(80); s ...