make & Makefile. . . . . . . . . . . . . . . . . . . . . . make & Makefile . 问题及解决方法 . . .1 如果某个源文件 (source file)修改必须重新生成所有与之关联的目 标文件 (targets), 如:对lex.h的改动, 必须重新手工编译lex.c, plain.c及最后生成plain, 这对管理工程造成了很大的不便; .2 Makefile . make 命令格式 1/2 . . Syntax of make: make [options] [target1 target2 ...] 常用的选项如下: -f file 以file作为Makefile; -d 输出 debug 信息,如:make -d -f Myfile > log 2>&1 -p 打印Makefile文件的所有的规则, 包括系统内置的变量和潜 规则; . . . . . . . . . . . . . . . . . . . . . make & Makefile . make 命令格式 2/2 . . make在执行时如果没有-f file选项,首先以当前目录下的名 为makefile的文件作为其分析处理的对象, 其次是名 为Makefile的文件; 如果都不存在, make将报错如下: make: *** No targets specified0 码力 | 36 页 | 975.98 KB | 1 年前3
跟我一起写 Makefile (PDF 重制版)无论是 C 还是 C++,首先要把源文 件编译成中间代码文件,在 Windows 下也就是 .obj 文件,UNIX 下是 .o 文件,即 Object File,这个 动作叫做编译(compile)。然后再把大量的 Object File 合成可执行文件,这个动作叫作链接(link)。 编译时,编译器需要的是语法的正确,函数与变量的声明的正确。对于后者,通常是你需要告诉编 译器头文件的所 件,只管函数的中间目标文件(Object File), 在大多数时候,由于源文件太多,编译生成的中间目标文件太多,而在链接时需要明显地指出中间目标 文件名,这对于编译很不方便。所以,我们要给中间目标文件打个包,在 Windows 下这种包叫“库文 件”(Library File),也就是 .lib 文件,在 UNIX 下,是 Archive File,也就是 .a 文件。 总结一下,源文件 明,编译器会给出一个警告,但可以生成 Object File。而在链接程序时,链接器会在所有的 Object File 中找寻函数的实现,如果找不到,那到就 会报链接错误码(Linker Error),在 VC 下,这种错误一般是:Link 2001 错误,意思说是说,链接器 未能找到函数的实现。你需要指定函数的 Object File。 好,言归正传,gnu 的 make 有许多的内容,闲言少叙。0 码力 | 81 页 | 628.51 KB | 1 年前3
Linux 下 Makefile 的 automake 生成全攻略的内容修改,去掉无关的语句: ===============configure.in 内容开始=================== # -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_INIT(helloworld.c) AM_INIT_AUTOMAKE(helloworld, 文件中的宏的顺序并没有规定,但是 你必须在所有宏的最前面和最后面分别加上 AC_INIT 宏和 AC_OUTPUT 宏。 在 configure.in 中: #号表示注释,这个宏后面的内容将被忽略。 AC_INIT(FILE) 这个宏用来检查源代码所在的路径。 AM_INIT_AUTOMAKE(PACKAGE, VERSION) 11 这个宏是必须的,它描述了我们将要生成的软件包的名字及其版本号:PACKAGE 命令时,它会给你生成一个类似 helloworld-1.0.tar.gz 的软件发行包,其中就有对应的软件包的名字和版本号。 AC_PROG_CC 这个宏将检查系统所用的 C 编译器。 AC_OUTPUT(FILE) 这个宏是我们要输出的 Makefile 的名字。 我们在使用 automake 时,实际上还需要用到其他的一些宏,但我们可以用 aclocal 来帮 我们自动产生。执行 aclocal 后我们会得到0 码力 | 14 页 | 701.04 KB | 1 年前3
Debian GNU/Linux 安裝手冊 January 8, 2024. . . . . . . . . . . . . . . . . . . . . 13 3.3.3.1 Testing hardware compatibility with a Live-System . . . . . . . . . . . . . 14 3.3.4 網路設置 . . . . . . . . . . . . . . . . . . . . . . . . . . . . automated install . . . . . . . . . . . . . . . . . . . . . 30 5.2.10 Accessibility of the installed system . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 5.3 開機參數 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 6.3.8.1 Setting the System Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 6.3.8.2 Reboot the System . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 120 页 | 643.51 KB | 1 年前3
httpd 2.2.31 中文文档should be able to find more information in either the New Features document, or in the src/CHANGES file. This document describes only the changes from 2.0 to 2.2. If you are upgrading from version 1.3 mod_imap has been renamed to mod_imagemap mod_auth has been split up into mod_auth_basic, mod_authn_file, mod_authz_user, and mod_authz_groupfile mod_access has been renamed to mod_authz_host mod_auth_ldap account for the module name changes mentioned above. If you choose to use the new default configuration file for version 2.2, you will find that it has been greatly simplified by removing all but the most essential0 码力 | 1860 页 | 1.48 MB | 1 年前3
httpd 2.2.27 中文文档should be able to find more information in either the New Features document, or in the src/CHANGES file. This document describes only the changes from 2.0 to 2.2. If you are upgrading from version 1.3 mod_imap has been renamed to mod_imagemap mod_auth has been split up into mod_auth_basic, mod_authn_file, mod_authz_user, and mod_authz_groupfile mod_access has been renamed to mod_authz_host mod_auth_ldap account for the module name changes mentioned above. If you choose to use the new default configuration file for version 2.2, you will find that it has been greatly simplified by removing all but the most essential0 码力 | 1849 页 | 1.47 MB | 1 年前3
httpd 2.2.27.dev 中文文档should be able to find more information in either the New Features document, or in the src/CHANGES file. This document describes only the changes from 2.0 to 2.2. If you are upgrading from version 1.3 mod_imap has been renamed to mod_imagemap mod_auth has been split up into mod_auth_basic, mod_authn_file, mod_authz_user, and mod_authz_groupfile mod_access has been renamed to mod_authz_host mod_auth_ldap account for the module name changes mentioned above. If you choose to use the new default configuration file for version 2.2, you will find that it has been greatly simplified by removing all but the most essential0 码力 | 1849 页 | 1.47 MB | 1 年前3
httpd 2.2.29 中文文档should be able to find more information in either the New Features document, or in the src/CHANGES file. This document describes only the changes from 2.0 to 2.2. If you are upgrading from version 1.3 mod_imap has been renamed to mod_imagemap mod_auth has been split up into mod_auth_basic, mod_authn_file, mod_authz_user, and mod_authz_groupfile mod_access has been renamed to mod_authz_host mod_auth_ldap account for the module name changes mentioned above. If you choose to use the new default configuration file for version 2.2, you will find that it has been greatly simplified by removing all but the most essential0 码力 | 1854 页 | 1.48 MB | 1 年前3
httpd 2.2.32 中文文档should be able to find more information in either the New Features document, or in the src/CHANGES file. This document describes only the changes from 2.0 to 2.2. If you are upgrading from version 1.3 mod_imap has been renamed to mod_imagemap mod_auth has been split up into mod_auth_basic, mod_authn_file, mod_authz_user, and mod_authz_groupfile mod_access has been renamed to mod_authz_host mod_auth_ldap account for the module name changes mentioned above. If you choose to use the new default configuration file for version 2.2, you will find that it has been greatly simplified by removing all but the most essential0 码力 | 1866 页 | 1.48 MB | 1 年前3
Zabbix 5.4 中文手册2.6.26 and lower. Note that static linking will not help in this case because it is the socket() system call that does not support SOCK_CLOEXEC flag on earlier kernels. ZBX-3395 6. Q: I try to set up Most likely that is frontend, connecting and checking whether server is still running. 10. Q: My system had the time set in the future and now no data is coming in. How could this be solved? A: Clear installations. You can use different commands, e. g. ”psql -U” depending on how your system/database are configured. If you have troubles setting up the database please consult your Database 0 码力 | 2339 页 | 19.57 MB | 1 年前3
共 818 条
- 1
- 2
- 3
- 4
- 5
- 6
- 82













