当前位置: 动力学知识库 > 问答 > 编程问答 >

Eclipse error in C project

问题描述:

I am new to C programming. I just installed Eclipse CDT and Cygwin. I tried to run this code. But showing 3 errors in problems window of eclipse.

Errors:

1- make:***[CProject.exe]Error 1

2- recipe for target 'Cproject.exe'failed

3- Undefined reference to '[email protected]'

Code:

#include<stdio.h>

int main(void)

{

printf("I want to be a competent C programmer");

return 0;

}

I don't know what to do, Can anyone help me?

网友答案:

Set the project type to console application and try again.

网友答案:

Try to compile and execute it with you're command line,

gcc yourfile.c
./a.out

if you don't have gcc, you can install it there : http://www.matpack.de/cygwin/index.html

分享给朋友:
您可能感兴趣的文章:
随机阅读: