"gcc" command refers to "perl"
Platform: Windows 7 64 bit
Hi all,
I want to compile with gcc. So I ha开发者_开发问答ve added the path to the gcc binary to the PATH environment variables. Whenever I type gcc in the command prompt, I wish to see something like "no input file specified" (from gcc itself). But instead I get the message "perl is not recognzied".
To cut short, when I type gcc in the command prompt it refers to perl for some reason. I have check all environment variables, and there is nothing that points to perl...
I have rebooted for several times already, without success.
It is not much of a problem to use the full path to gcc when I want to compile just a single file. But when I use make it does not work. Because make uses the gcc command again. Which then refers to "perl".
Any suggestions?
Thanks in advance.
How odd.
Try:
set CC=x:\path\to\gcc
make ...
(See http://www.gnu.org/s/hello/manual/make/Implicit-Variables.html.)
Don't use make on Windows. Use dmake -- available at: http://search.cpan.org/dist/dmake/
make on MinGW(32|64) is somewhat broken at the best of times. Windows Perl's are usually built with dmake (or nmake if you are using Visual C++).
精彩评论