Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Sample Hello World App Won't Run
Sample Hello World App Won't Run [message #225767] Wed, 22 October 2008 19:31 Go to next message
Eclipse UserFriend
Originally posted by: nospam.nospam.com

Hi,

I'm using CDT on Windows XP on Eclipse Version: 3.3.2 Build id:
M20080221-1800.

I installed the GCC tools, and then created the "Hello World C++ Example"
app. All the files (including .exe, .cpp, and make) were created
successfully. However, if I try to run testcpp.exe from within Eclipse
(my project is titled testcpp), the following message flashes in the
console where "Hello World" should be:

make all
make: Nothing to be done for 'all'

Why is the application not echoing "Hello World" in the Eclipse console?

Thanks,
Jonah

Two other things that may be relevant:

1. If I run testcpp.exe from the cygwin command line, it works fine and
echos "Hello World".

2. If I try to execute testcpp.exe from the windows command line, I get a
popup error with the title "testcpp.exe - Unable To Locate Component" and
the message:
Re: Sample Hello World App Won't Run [message #226381 is a reply to message #225767] Tue, 04 November 2008 17:35 Go to previous message
Eclipse UserFriend
Hi,
Your application is probably searching for cygwin1.dll. Try adding
C:\cygwin\bin to your $PATH, this should make it run at least in windows cmd
shell and probably under Eclipse/CDT as well.

Alex

"Jonah " <nospam@nospam.com> wrote in message
news:29bb1590f09f98f6b0b6854c6e609050$1@www.eclipse.org...
> Hi,
>
> I'm using CDT on Windows XP on Eclipse Version: 3.3.2 Build id:
> M20080221-1800.
>
> I installed the GCC tools, and then created the "Hello World C++ Example"
> app. All the files (including .exe, .cpp, and make) were created
> successfully. However, if I try to run testcpp.exe from within Eclipse
> (my project is titled testcpp), the following message flashes in the
> console where "Hello World" should be:
>
> make all
> make: Nothing to be done for 'all'
>
> Why is the application not echoing "Hello World" in the Eclipse console?
>
> Thanks,
> Jonah
>
> Two other things that may be relevant:
>
> 1. If I run testcpp.exe from the cygwin command line, it works fine and
> echos "Hello World".
>
> 2. If I try to execute testcpp.exe from the windows command line, I get a
> popup error with the title "testcpp.exe - Unable To Locate Component" and
> the message:
>
>
>
>
>
>
Previous Topic:precompiled headers?
Next Topic:Compiler specific keywords and cdt 5.0 code assist
Goto Forum:
  


Current Time: Wed May 07 12:18:00 EDT 2025

Powered by FUDForum. Page generated in 0.27174 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top