linux中安装eclipse编译C语言问题
**** Build of configuration Debug for project helloworld ****
make all
Building file: ../helloworld.c
Invoking: GCC C Compiler
gcc -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"helloworld.d" -MT"helloworld.d" -o"helloworld.o" "../helloworld.c"
Finished building: ../helloworld.c
Building target: helloworld
Invoking: GCC C Linker
gcc -o"helloworld" ./helloworld.o
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../crt1.o(.text+0x18): In function `_start':
../sysdeps/i386/elf/start.S:77: undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [helloworld] Error 1
sf
你是不是在Eclipse没进行设置。???
在Eclipse里 在C++的设置里 要把binary parser 改成PE windows parser的
大姐呀!!我写的是C程序!
要在Eclipse里 在C++的设置里 要把binary parser 改成PE windows parser的吗??
很确切的告诉你 你编写C程序就得改!!!!!!!!!!!!!
{{
相关问答:
请问用C或C++如何编写求解3D魔方的程序,该从何开始?
谢谢各位,帮忙提点建议吧。
http://www.mofang.net/code/176/182/6581.html
我只能突破60秒!唉。
我刚过40秒
google的android中有个OpenGL ES + ......
写了个测试程序如下
struct hostent *hp;
char AlarmDevIP[20];
int x2;
hp = gethostbyname("www.google.com");
if (hp)
{
......
我现在要些一个fortran调用C接口的问题,但是不知道 C语言里面分配的指针怎么付给fortran,又不能在fortran立马先分配好,业务上不允许。
我写了个测试的例子。但是不行。
test.c
#include <stdio.h>
#incl ......
SHIFT加F10与那个键右ctrl边上的那个键功能一样,想屏这个
但不知要怎么写那个组合键!
有没哪个大侠放一段这个的代码或写一段
http://topic.csdn.net/u/20090609/15/7dc9fb70-243f-4070-9cfd-34e48b66e6c6.html
......