我从网上下载了DJGPP。在RHIDE的环境中写了一个abc.Cpp文件,内容为
#include <Stdlib.h>
#include <Stdio.h>
#include <string.h>
#include <dos.h>
void main()
{
printf ("\n");
printf ("\nHello! ");
printf ("\nI Love DJGPP!")
return;
}
已经设置了环境变量,设置了“include”和“Lib”目录的所在位置,编译已经通过,就是链接不成功,谁能知诉我?
include 设置成"c:\djgpp\include"
lib 设置成"c:\djgpp\lib"
object 设置成"c:\djgpp"
source 设置成"c:\djgpp"
显示的信息是:
Creating: aout.exe
Error: gcc.exe: no input files
There were some errors
我的文件是“abc.Cpp”,默认应该生成“abc.Exe”文件才对,RHIDE好象是要生成“aout.exe”文件似的。找篇了整个菜单都找不到有“aout.exe”字样的地方。
???
???
[ Last edited by windowsvesta on 2007-8-2 at 10:17 PM ]
#include <Stdlib.h>
#include <Stdio.h>
#include <string.h>
#include <dos.h>
void main()
{
printf ("\n");
printf ("\nHello! ");
printf ("\nI Love DJGPP!")
return;
}
已经设置了环境变量,设置了“include”和“Lib”目录的所在位置,编译已经通过,就是链接不成功,谁能知诉我?
include 设置成"c:\djgpp\include"
lib 设置成"c:\djgpp\lib"
object 设置成"c:\djgpp"
source 设置成"c:\djgpp"
显示的信息是:
Creating: aout.exe
Error: gcc.exe: no input files
There were some errors
我的文件是“abc.Cpp”,默认应该生成“abc.Exe”文件才对,RHIDE好象是要生成“aout.exe”文件似的。找篇了整个菜单都找不到有“aout.exe”字样的地方。
???
???
[ Last edited by windowsvesta on 2007-8-2 at 10:17 PM ]
