
linux
a331251021
这个作者很懒,什么都没留下…
展开
-
linux下启动不了eclipse
打开eclipse选择workspace一会后就挂掉。解决办法 在 your_workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/ 新建org.eclipse.ui.prefs 添加 showIntro=false注意已上路径是隐藏的,要用ls -al才能看的到,还有修改的时候注意为root权限。转载 2013-03-29 20:35:05 · 2010 阅读 · 0 评论 -
编写入门的linux模块(Hello World)
首先在自己的目录下写源码用VI这个工具文件命名为hello.c////hello.c//#include #include #include static int hello_init(void) { printk(KERN_WARNING "Module init: Hello world!\n"); return 0;}static原创 2013-04-09 16:54:28 · 938 阅读 · 0 评论 -
linux下多文件编译
1.源程序的编译 在Linux下面,如果要编译一个C语言源程序,我们要使用GNU的gcc编译器. 下面我们以一个实例来说明如何使用gcc编译器. 假设我们有下面一个非常简单的源程序(hello.c): int main(int argc,char **argv) { printf("Hello Linux\n"); }要编译这个程序,我们只要转载 2013-04-09 17:49:30 · 928 阅读 · 0 评论