用apt-get install eclipse安装eclipse后,又插了CDT,可以进入界面编写C和C++,问题来了:
执行 不了,提示:
警告: 文件未以空白行结束 1
在console中显示:
**** Build of configuration Debug for project 1 ****
make -k all
Building file: ../asdf.c
Invoking: GCC C Compiler
gcc -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"asdf.d" -MT"asdf.d" -o"asdf.o" "../asdf.c"
../asdf.c:6:2: 警告: 文件未以空白行结束
Finished building: ../asdf.c
Building target: 1
Invoking: GCC C Linker
gcc -o"1" ./asdf.o
Finished building target: 1
Build complete for project 1
可用gcc可以啊
是什么问题呢,真诚请教
eclipse3.2+cdt3.12运行不了C C++?
-
- 帖子: 12
- 注册时间: 2007-10-19 21:34
-
- 帖子: 12
- 注册时间: 2007-10-19 21:34
刚看到其他贴,回车可以解决 警告: 文件未以空白行结束 1 这个问题,
可又有这个:
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/backward/backward_warning.h 警告: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated. hallo world line 32 1196328383081 34
看了老半天,关于header的,不知道怎么解决,真诚请教中~~~~~
可又有这个:
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/backward/backward_warning.h 警告: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated. hallo world line 32 1196328383081 34
看了老半天,关于header的,不知道怎么解决,真诚请教中~~~~~
- madoldman
- 帖子: 599
- 注册时间: 2006-02-27 20:19
- 来自: works system
- 联系:
- madoldman
- 帖子: 599
- 注册时间: 2006-02-27 20:19
- 来自: works system
- 联系:
-
- 帖子: 700
- 注册时间: 2006-10-18 15:48