还有一问题:写了一个最简单的:
#include<stdio.h>
main()
{
printf("ddd");
}
然后电击右键,选择"调试"--"run/continue"报错如下:
Error:No executable file specified.
Error:Use the "file" or"exec-file"command.
Error:The program is not being run.
将程序另存为 /root/Newfile.c 后选择"Debug"--"Load executable"选中'/root/Newfile.c"后确定,报错如下:load executable:/root/Newfile.c
Error:"/root/Newfile.c":not in executable format:File format not recognized.
到底应该怎样才能正确使用?我是新手,谢谢指教,谢谢!!
#include<stdio.h>
viod main()
{
printf("ddd");
}
compile build 时提示如下:
gcc -wall -g -c "Newfile.c"-o"Newfile.o"
Newfilw.c:4:warning:return type of'main' is not 'int'
compile completed...successful
total time taken:0 secs
"Debug"后还是报错如下:
Error:No executable file specified.
Error:Use the "file" or"exec-file"command.
Error:The program is not being run.
怎么回事?是不是"compile build"和"Debug"间还差了什么?
谢谢指教!!!
project里好象就一个class builder ,其他都不可用.
今天情况又不一样了:
void main()
{ printf("dd");
}
compile build 时提示如下:
gcc -wall -g -c "Newfile.c"-o"Newfile.o"
Newfilw.c:3:warning:return type of'main' is not 'int'
newfile: c:4:warning:implict declaration of funtion 'printf'
compile completed...successful
total time taken:0 secs
"debug"后提示:the excutable is not up-to-date.
现在又是怎么回事?
能不能给我写一个简单的,可以运行的例子,不胜感激!!!