Home > Back-end >  Be urgent! Use Notepad to write the C program cannot compile operation, how to solve?
Be urgent! Use Notepad to write the C program cannot compile operation, how to solve?

Time:10-15

Himself a small white, originally only DC, recently began written in notepad + +, have downloaded GCC, environment variables also have no problem, lost in the way of online orders, but have not been able to compile operation, figure and don't know _https: please click on the baidu//zhidao.baidu.com/question/460435487039043285.html,
Please help, thank you

CodePudding user response:

1) can be seen from the first error window prompts should be environment parameter wrong: didn't find the GCC
2) from the back of the command GCC is already installed, should be in TDM GCC directory
At the same time in the run directory Helloword can that GCC should be correct, has very little to do with GCC version

CodePudding user response:

Never under the Windows with GCC, up to just know the cygwin
1) you run under the Windows command line: path, confirm the environment parameter g: \ TDM GCC \ bin is already set success
2) run your GCC command again, see if this time you will be prompted GCC also couldn't find it

CodePudding user response:

Notepad + + is a editor, it is better to use dev - CPP, dev - CPP internal integration the GCC 3.4.2, a bit old, but can be set in the options to use high version of the GCC (if installed),

CodePudding user response:


Is that so?

CodePudding user response:

You try using CMD to see the version of GCC, verify the GCC installation and environment variable is correct, remembered command, check yourself, generally the problem has nothing to do with the editor,

CodePudding user response:

reference 4 floor clearhands response:

Is that so?

This time with GCC try again, see if prompt GCC can't find, your original error obviously, temporarily have nothing to do with the editor, GCC on success
Most of this time should be you will be prompted GCC can be normal operation, such as literally run GCC - v or GCC -- help category), if the GCC can be performed, under the command line to build your program

CodePudding user response:

It is recommended to use DEV - c + + 5.11, she is using GCC 4.9.2

CodePudding user response:

Visual c + + 2010 Express simplified Chinese http://pan.baidu.com/s/1bnwRVLt

CodePudding user response:

Bosses, I also am this problem, can you solve it

CodePudding user response:

It is recommended to use vscode
  • Related