2019年7月18日

Ubuntu 修改 hosts 文件

摘要: sudo vi /etc/hosts sudo /etc/init.d/networking restart 阅读全文

posted @ 2019-07-18 17:08 liujx2019 阅读(957) 评论(0) 推荐(0) 编辑

Makefile 简要辅导 【转载】

摘要: A Simple Makefile Tutorial Makefiles are a simple way to organize code compilation. This tutorial does not even scratch the surface of what is possibl 阅读全文

posted @ 2019-07-18 09:50 liujx2019 阅读(167) 评论(0) 推荐(0) 编辑

Makefile 中引用多个 include 路径

摘要: LIB=-L/usr/informix/lib/c++ INC=-I/usr/informix/incl/c++ -I/opt/informix/incl/public default: main main: test.cpp gcc -Wall $(LIB) $(INC) -c test.cpp #gcc -Wall $(LIB) $(INC) ... 阅读全文

posted @ 2019-07-18 09:47 liujx2019 阅读(5034) 评论(0) 推荐(0) 编辑

Makefile 头文件 <> 与 "" 的差别,与 Visual Studio 不同

摘要: #include "" : 首先在所有被编译的.c所在的路径中,查找头文件,如果找不到,则到 -I路径下去找头文件#inclue <> :首先在-I路径下去找,如果找不到,那就找不到了,编译错误 阅读全文

posted @ 2019-07-18 09:45 liujx2019 阅读(253) 评论(0) 推荐(0) 编辑

导航