摘要: 我们先看三段C++程序:一、line1的源码line1.h1 #ifndef _LINE_1_H 2 #define _LINE_1_H 3 void line1_print(const char *strMsg);4 #endifView Codeline1.cpp1 #include "... 阅读全文
posted @ 2015-12-07 23:31 大老渊 阅读(617) 评论(0) 推荐(0) 编辑
摘要: LIB = ./libtest.aCC = g++PRG = mainOBJ = main.o$(PRG):$(OBJ) $(CC) -o $@ $(OBJ) $(LIB) .SUFFIXES: .c .o .cpp.cpp.o: $(CC) -c $*.cpp -o $*.o #main.o: ... 阅读全文
posted @ 2015-12-07 23:07 大老渊 阅读(969) 评论(0) 推荐(0) 编辑
摘要: 1、编译动态库 ############################################################# # Makefile for shared library. # 编译动态链接库 ####################... 阅读全文
posted @ 2015-12-07 16:29 大老渊 阅读(5932) 评论(0) 推荐(0) 编辑
摘要: makefile很重要 什么是makefile?或许很多Winodws的程序员都不知道这个东西,因为那些Windows的IDE都为你做了这个工作,但我觉得要作一个好的和professional的程序员,makefile还是要懂。这就好像现在有这么多的HTML的编辑器,但如果你想成为一个专业人士,... 阅读全文
posted @ 2015-12-07 15:38 大老渊 阅读(359) 评论(0) 推荐(0) 编辑