|Re: make:***No rule to make target 'all'. [message #900840 is a reply to message #900827]
||Wed, 08 August 2012 17:00
| Joost Kraaijeveld
Registered: July 2009
On 08/08/12 17:52, Charles Letcher wrote:|
> I am getting this same error: ***No rule to make target 'all'. error and
> sh-c "autoreconf-i" (configure problem"
> This is a fresh install on a new Windows 7 computer with recently
> downloaded MinGW/Eclipse. The environment variable is set for MinGW.
> gcc/g++ work from the command line OK. The errors above occur when
> trying to compile the "Hello World" sample application as a new exe and
> as a new auto-build.
> CDT does not seem to be recognizing the MinGW toolchain.
> Searching through the settings did not show where sh -c ... is set. I
> did re-read the documentation and retry everything. I'm fairly certain
> that MinGW is installed/running all OK. My previous computer had no
> trouble finding/using MinGW for C projects.
If you say gcc works from the command line, do you mean with the command
line that is created by the mingw installation utility or the plain
Windows cmd.exe command prompt? The script / batch file that starts the
MingW Shell adds, amongst things, a lot of stuff to the environment. If
you do not use a script to create the same environment in which Eclipse
starts, you should add the "MingW\bin" and "MingW\msys\1.0\bin" to your
Windows path environment.
By the error you show, especially "sh-c "autoreconf-i" (configure
problem"", I deduce that you tried to create a GNU Autotools Hello World
application. Did you also install Msys and added its bin path to your
path (see above)? Does a new auto generated "Hello World C++" executable
For what it is worth: because of teaching duties I tested the basic
functionality of Eclipse / MingW and they work for me out-of-the-box on
Windows XP. Both the auto generated "Hello World C++" executable Project
and the auto generated "Hello World C++" GNU Autotools Project work.
The MingW installation was done by downloading the installer at
http://sourceforge.net/projects/mingw/files/Installer/, latest version:
mingw-get-inst-20120426.exe (downloaded on 5-8-2012). I chose to
download the lates repository catalogues, and installed the C en C++
compiler, MSYS Basic system and MINGW Developer Toolkit. Because I do
not use the msys.bat I added the two paths I mentioned above to the
Windows system environment.
tel: 024-3888063 / 06-51855277
Powered by FUDForum
. Page generated in 0.02323 seconds