Home » Language IDEs » C / C++ IDE (CDT) » Error Eclipse+CDT+Cygwin+XP! Help!
Error Eclipse+CDT+Cygwin+XP! Help! [message #140295] |
Mon, 07 March 2005 20:03  |
Eclipse User |
|
|
|
Originally posted by: weiyidequeen.yahoo.com.cn
Dear all:
I want to run my c++ program in Eclipse.
So I setup Eclipse, CDT and cygwin.
But I can not build !
1, I have cheched the gcc --version, g++ -version. It seems normal.
Information about version lists Appendix A.
2, If I create a new c++ or c project, there is an error marker in my c++
project even if I do not create any .cpp or .c file. It really confused me.
3, I want to create new c++ project just like Appendix B.
When I restart Eclipse, error marker still exits in c++ project; but
nothing shows in console view. When I click "build all" , nothing happens.
4, I try to start my Eclipse from cygwin. Error still exists.
Appendix A:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Administrator>gcc --version
gcc (GCC) 3.2 20020927 (prerelease)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
C:\Documents and Settings\Administrator>g++ --version
g++ (GCC) 3.2 20020927 (prerelease)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Appendix B:
new --> standard make c++ project (called it "hello world")
right click on "Hello world" --> new --> file (called it hello.cpp)
code:
******************
#include <iostream.h>
int main()
{
cout << "hello world\n";
return 0;
}
*******************
right click on "hello world" --> rebuild project
in the console it says:
make -k clean all
make: ***No rule to make target 'clean'.
make: ***No rule to make target 'all'.
|
|
|
Re: Error Eclipse+CDT+Cygwin+XP! Help! [message #140301 is a reply to message #140295] |
Tue, 08 March 2005 05:06   |
Eclipse User |
|
|
|
Originally posted by: emanuel.schleussinger.ner
If i didn't miss anything , you did not supply a makefile with your
project. You have to do that for a "Standard Make Project" -- if you
don't want to write a makefile, use a "Managed Make Project" instead,
and it will be generated for you, including these targets.
best
Emanuel
On Tue, 8 Mar 2005 01:03:04 +0000 (UTC), weiyidequeen@yahoo.com.cn
(weiyidequeen) wrote:
>Dear all:
>
>I want to run my c++ program in Eclipse.
>So I setup Eclipse, CDT and cygwin.
>But I can not build !
>
>1, I have cheched the gcc --version, g++ -version. It seems normal.
>Information about version lists Appendix A.
>
>2, If I create a new c++ or c project, there is an error marker in my c++
>project even if I do not create any .cpp or .c file. It really confused me.
>
>3, I want to create new c++ project just like Appendix B.
>When I restart Eclipse, error marker still exits in c++ project; but
>nothing shows in console view. When I click "build all" , nothing happens.
>
>4, I try to start my Eclipse from cygwin. Error still exists.
>
>
>Appendix A:
>
>Microsoft Windows XP [Version 5.1.2600]
>(C) Copyright 1985-2001 Microsoft Corp.
>
>C:\Documents and Settings\Administrator>gcc --version
>gcc (GCC) 3.2 20020927 (prerelease)
>Copyright (C) 2002 Free Software Foundation, Inc.
>This is free software; see the source for copying conditions. There is NO
>warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
>
>C:\Documents and Settings\Administrator>g++ --version
>g++ (GCC) 3.2 20020927 (prerelease)
>Copyright (C) 2002 Free Software Foundation, Inc.
>This is free software; see the source for copying conditions. There is NO
>warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
>
>
>Appendix B:
>new --> standard make c++ project (called it "hello world")
>right click on "Hello world" --> new --> file (called it hello.cpp)
>
>code:
>******************
>#include <iostream.h>
>
>int main()
>{
> cout << "hello world\n";
> return 0;
>}
>*******************
>right click on "hello world" --> rebuild project
>
>in the console it says:
>make -k clean all
>make: ***No rule to make target 'clean'.
>make: ***No rule to make target 'all'.
|
|
|
Re: Error Eclipse+CDT+Cygwin+XP! Help! [message #140367 is a reply to message #140301] |
Wed, 09 March 2005 03:15  |
Eclipse User |
|
|
|
Originally posted by: weiyidequeen.yahoo.com.cn
Thanks for your help!
You said right!
I try to create a new C/C++ manage project, I got right result!
Now I can run my C/C++ program in Eclipse.
To be honest, I have no idea about makefile file :(
Emanuel Schleussinger wrote:
> If i didn't miss anything , you did not supply a makefile with your
> project. You have to do that for a "Standard Make Project" -- if you
> don't want to write a makefile, use a "Managed Make Project" instead,
> and it will be generated for you, including these targets.
> best
> Emanuel
> On Tue, 8 Mar 2005 01:03:04 +0000 (UTC), weiyidequeen@yahoo.com.cn
> (weiyidequeen) wrote:
>>Dear all:
>>
>>I want to run my c++ program in Eclipse.
>>So I setup Eclipse, CDT and cygwin.
>>But I can not build !
>>
>>1, I have cheched the gcc --version, g++ -version. It seems normal.
>>Information about version lists Appendix A.
>>
>>2, If I create a new c++ or c project, there is an error marker in my c++
>>project even if I do not create any .cpp or .c file. It really confused me.
>>
>>3, I want to create new c++ project just like Appendix B.
>>When I restart Eclipse, error marker still exits in c++ project; but
>>nothing shows in console view. When I click "build all" , nothing happens.
>>
>>4, I try to start my Eclipse from cygwin. Error still exists.
>>
>>
>>Appendix A:
>>
>>Microsoft Windows XP [Version 5.1.2600]
>>(C) Copyright 1985-2001 Microsoft Corp.
>>
>>C:Documents and SettingsAdministrator>gcc --version
>>gcc (GCC) 3.2 20020927 (prerelease)
>>Copyright (C) 2002 Free Software Foundation, Inc.
>>This is free software; see the source for copying conditions. There is NO
>>warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>>
>>
>>C:Documents and SettingsAdministrator>g++ --version
>>g++ (GCC) 3.2 20020927 (prerelease)
>>Copyright (C) 2002 Free Software Foundation, Inc.
>>This is free software; see the source for copying conditions. There is NO
>>warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>>
>>
>>
>>Appendix B:
>>new --> standard make c++ project (called it "hello world")
>>right click on "Hello world" --> new --> file (called it hello.cpp)
>>
>>code:
>>******************
>>#include <iostream.h>
>>
>>int main()
>>{
>> cout << "hello worldn";
>> return 0;
>>}
>>*******************
>>right click on "hello world" --> rebuild project
>>
>>in the console it says:
>>make -k clean all
>>make: ***No rule to make target 'clean'.
>>make: ***No rule to make target 'all'.
|
|
|
Goto Forum:
Current Time: Mon May 12 06:52:03 EDT 2025
Powered by FUDForum. Page generated in 0.03129 seconds
|