Problem with gcc


9 replies [Last post]
jake
jake's picture
Offline
Joined: 2011-12-08
Points: 0

I have gcc installed as followed by the videos. However when I type gcc in the command prompt I get chinese words! I wish I could paste the words in here, but it won't let me.

I don't know if this helps or not, but I the chinese language tool bar installed. It allows me to type chinese characters. I don't see how this can effect the command prompt since I had it turned on to type English not Chinese.

Edit:

I have fixed the Chinese language problem now. All I needed to do was go to command properties, click on the options tab and change the current code page to U.S. instead of Chinese. Hope this helps anyone who has a similar problem.

 

There still is a problem. ;( When I type gcc into the command prompt, I get:

'gcc' is not recognized as an internal or external command,

operable program or batch file.

I know there's a similar thread with the same problem. I have checked the syntax for the path and I'm pretty sure it's correct. Here is the line:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;c:\Python22;C:\Program Files\QuickTime\QTSystem\;C:\MinGW\bin\

Also, I noticed that my command prompt start up is different than the one from the video. In the video, it goes C:\user\wibit.net\. Mine starts out C:\Documents and Settings\Owner\. Could this be why it's not working?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
seeaboardcoast
seeaboardcoast's picture
Offline
Joined: 2011-12-29
Points: 0

I downloaded the latest MinGW, can't make the compiler work.

'gcc' is not recognized as an internal or external command,

operable program or batch file. Does anybody encounter the same problem?

Thanks in advance.

MAVLL
Offline
...burning like a watchful eye...I am a moderatorI've been here since the first tree. I am betaI don't know when to shut up.I found a bug so fix it!W007! I watched 10 vids!
Joined: 2011-05-14
Points: 210

Hello Friend.

 

Try to uninstall the program and re install, another friend of this forum did that y then all good.

 

jake
jake's picture
Offline
Joined: 2011-12-08
Points: 0

I have uninstalled the program and reinstalled it, but some how I have a new problem now. When I type "gcc" in the command prompt I get:

gcc: fatal error: no input files

compilation terminated.

I don't know what that means, but I hope I'm making progress.

fabrimago
Offline
My name if Forest WiBit.We propose a toast! To you!W007! I watched 10 vids!
Joined: 2011-11-10
Points: 210

Hi Jake,

your latest error is not an error.

Its just a message you did not use parameters to compile a c program.

U have to use it like:

gcc c\test.c -o c:\test.exe

 

where test.c is you replace with the path to your C file the same goes for test.exe

bheft
bheft's picture
Offline
Joined: 2012-01-06
Points: 0

I get a similar issue. But when I type in something like

gcc test.c -o test.exe

I get the result

test.c:1:20: fatal error: studio.h: No such file or directory compilation terminated.

 

jake
jake's picture
Offline
Joined: 2011-12-08
Points: 0

I'm now also getting the similar problem as bheft. The words are almost exact, expect mine is 1:19 instead of 1:20.

jake
jake's picture
Offline
Joined: 2011-12-08
Points: 0

I finally found the problem. I spelled "stdio.h" wrong. I spelled it "stido.h" instead. 

inightmare
inightmare's picture
Offline
Joined: 2012-03-25
Points: 0

thanks a lot jake i did the same thing i would never have noticed that if it wasnt for you. thanks

mrs.jswilson
mrs.jswilson's picture
Offline
Joined: 2012-06-16
Points: 0

I am having the same problem as Jake and seaboardcoast...

"'gcc' is not recognized as an internal or external command,

operable program or batch file"

I have un-installed and re-installed MinGW numerous times and also on a different system. and the error is still the same... I even tried a Dev Cpp compiler with MinGW... same problem...

any other ideas??? 

 

Never mind... i got it to work eventually...  thanks anyway!!!