LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 817|回复: 3

各位高手,请帮忙看看,不要让我对linux失去信心:(

[复制链接]
发表于 2003-2-24 10:41:22 | 显示全部楼层 |阅读模式
help me!!!!!!!!!!!!!!
/***************************************************************************
main.c - description
-------------------
begin : Ò» 2ÔÂ 23 19:35:30 CST 1998
copyright : (C) 1998 by
email :
***************************************************************************/

/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/


#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
printf("Hello, world!\n");

return EXIT_SUCCESS;
}

compiler ok;
link:
gmake: *** Warning: File `admin/acinclude.m4.in' has modification time in the future (2002-08-06 05:39:32 > 1998-02-23 19:46:02)

configure.in:58: warning: do not use m4_patsubst: use patsubst or m4_bpatsubst
configure.in:100: warning: do not use m4_regexp: use regexp or m4_bregexp

这两条警告什么意思?
系统环境:kdevelop 2.1 ,redhat8.0
现象:这么一个简单的程序,编译很快,但是link的时候,超过4分钟还没有完成,只好终止,为什么?
发表于 2003-2-24 14:56:06 | 显示全部楼层
建议:如果只是一个初学者,你可以从命令行开始学习编程。
这样你可以将你的注意力放在程序上,而不是编程工具上。
推荐vi+Makefile。
我想你的程序并不存在什么问题。
你可以在命令行里输入gcc main.c来验证。
发表于 2003-2-24 21:35:08 | 显示全部楼层
或许是你的注释里面用了中文造成的(猜的)
发表于 2003-2-25 02:47:21 | 显示全部楼层
不要用KDevelop,那家伙和VC一样,建立的工程加了好多东西,你的程序只是普通的命令行程序,直接用gcc就行了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表