From: Earnie B. <ea...@us...> - 2013-04-22 12:01:38
|
On Sun, Apr 21, 2013 at 10:53 PM, Eli Zaretskii wrote: >> From: Otto Hunt >> Date: Sun, 21 Apr 2013 15:56:26 -0700 >> >> So compilation should work (my previous error was typing g++). When I >> navigate to c:\cfiles\ (where I have chosen to store my source code) then >> enter "gcc helloworld.cpp -o helloworld.exe " I get a new error: >> >> gcc: error: CreateProcess: No such file or directory >> >> But when I change the .cpp to .c, it will compile, with a warning: > > That means you didn't install the C++ compiler distribution. When gcc > sees a C++ file, such as helloworld.cpp, it wants to invoke > cc1plus.exe, the C++ compiler. And it evidently doesn't find it. And to get rid of the warning you need to include stdio.h. -- Earnie -- https://sites.google.com/site/earnieboyd |