这是一个"Hello.c"模块和"Makefile".make从woking目录执行后,我收到以下消息:
make:没有什么可以为'all'做的.
这是"Hello.c"文件:
#include <linux/module.h> // included for all kernel modules
#include <linux/kernel.h> // included for KERN_INFO
#include <linux/init.h> // included for __init and __exit macros
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Lakshmanan");
MODULE_DESCRIPTION("A Simple Hello World module");
static int __init hello_init(void) {
printk(KERN_INFO "Hello world!\n");
return 0; // Non-zero return means that the module couldn't be
}
static void __exit hello_cleanup(void) {
printk(KERN_INFO "Cleaning up module.\n");
}
module_init(hello_init);
module_exit(hello_cleanup);
Run Code Online (Sandbox Code Playgroud)
和"Makefile":
obj-m += hello.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean: …Run Code Online (Sandbox Code Playgroud) 我下载了 Clamwin 源代码并将 clamwin 解决方案加载到 Visual Studio(2010 Professional)并成功构建了所有项目,没有任何错误。单击start without debugging(将clamscan项目设置为启动)后,我在 cmd 提示符下收到以下错误。
LibClamAV Error:cl_load:No such file or directory: C:\Users\my-pc\Desktop\clamav-win32-clamav-0.99\contrib\msvc\Debug\Win32\db
-----------SCAN SUMMARY-------------
Known viruses: 0
Engine version: 0.97.8
Scanned directories: 0
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 0.003 sec (0 m 0 s)
Press any key to continue . . .
Run Code Online (Sandbox Code Playgroud)
我在网上搜索了解决方案, Clam is looking for it's database files and the directory doesn't have them, doesn't …