随笔分类 -  linux c++

摘要:const char *fifo_name = "/tmp/my_fifo"; int pipe_fd = -1; int data_fd = -1; int res = 0; const int open_mode = O_WRONLY; int bytes_sent = 0; char buffer... 阅读全文
posted @ 2018-04-27 16:35 balder_m 阅读(319) 评论(0) 推荐(0)
摘要:@echo $(wildcard *.cpp) 只能打印出当前目录的cpp文件,不会遍历子目录patsubst:替换 objects := $(patsubst %.c,%.o,$(wildcard *.c))//替换.c 字符为.o字符 foo : $(objects) cc -o foo $(o 阅读全文
posted @ 2018-02-22 14:00 balder_m 阅读(268) 评论(0) 推荐(0)