How can I set up an environment variable to work with TCC?

Kyle Baran

I am trying to set up TCC on Windows 7, but I can't seem to make it work dynamically from cmd

To be able to invoke the compiler from everywhere on your computer by
just typing "tcc", please add the directory containing tcc.exe to your
system PATH.

So I changed my environment variable that said "Path" from:

C:\ProgramData\Oracle\Java\javapath;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\

To:

C:\ProgramData\Oracle\Java\javapath;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\; C:\compilers\tcc\tcc.exe

But when I open cmd, it still says that "tcc" is not a recognized command.

Sнаđошƒаӽ

You have added the location to the .exe file named tcc.exe in your path. What you should do is add the location of the folder containing the tcc.exe file. So in your case the environmental path variable should be like this

C:\ProgramData\Oracle\Java\javapath;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\; C:\compilers\tcc

Assuming that your tcc.exe file is in the folder is C:\compilters\tcc

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How can I set up the python environment variable on Windows 7?

How can I set runtime variable for docker compose environment variable

How can I check if an environment variable is set in Node.js?

How can I set the helm tiller namespace via an environment variable?

How can I set .bash_profile environment variable in Dockerfile?

How can I set an environment variable which contains newline characters?

How can I set an environment variable as gulp task?

How can I consistently set an environment variable for a single program?

How can I set a runtime environment variable based on the value of another

How can I set the environment variable in request header for curl?

How can I set environment variable for another user account in Windows?

How to set up environment variable properly?

How can I set up Eclipse to work with a Quickly program?

How can I set up an editor to work with Git on Windows?

how to set DISCOVERY_AS_LOCALHOST in Fabric -Gateway -Java? I set the environment variable, but it doesn't work

How do i set up a bearer token in postman from an environment variable?

I don't have a param key in my Rails Application. How do I either work around it or set one up so I can save the value to a variable

Why is this environment variable not set up?

How do I set an environment variable?

Setting up Clusters and work nodes - How do I set KUBECONFIG variable in Windows 10?

What is the LESS environment variable to man and how is it set up?

Anaconda - I have set up an environment, how do I use it?

I have accidentally set up my path environment variable incorrectly using the .bash_profile on macbook. How do I reset it?

how can I run a command from an environment variable and have the internal trailing ampersand work?

How can I set the environment based on route?

How can I unset an environment variable in Kubernetes?

How can I check the environment variable in meteor

How can I require admin login on a Django site only if a certain environment variable is set?

How can I use jq to get the key value pairs only and set as environment variable?