LLVM-mctoll command not recognized - llvm

I followed the steps on llvm-mctoll and everything worked but when I tried to finally run the command to run the tool and lift the elf to LLVM IR I got the error: 'llvm-mctoll' is not recognized as an internal or external command, operable program or batch file.
This is what I tried:
llvm-mctoll -d ..\testcases\a.out -I "C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\stdio.h" -o=../testcases/out.ll --output-format=ll
Thanks in advance!

Related

cppcheck from command line not recognized

I downloaded cppcheck to analyze my C++ programs, successfuly got to work it´s gui environment but I would also like to use it from command line.
In C:\users\me\documents\main.cpp
is my cpp program that I try to analyze with cppcheck. When I type cppcheck main.cpp in cmd, I only get a message saying 'cppcheck' is not recognized as an internal or external command,
operable program or batch file.
Is there anything I should link my cppcheck with in order to get recognized by command line?
The directory where cppcheck is installed needs to be added to your PATH if not present, or in alternative you have to give the full-pathname to the execution command.

"g++" works in Command Prompt but not in VSCode Terminal

When I type "g++" in Windows Command Prompt, I get this message "g++: fatal error: no input files
compilation terminated.". However, when I try that in the VSCode terminal, I get this message instead "'g++' is not recognized as an internal or external command,
operable program or batch file.". Anyone know how to fix this?
Nevermind. I restarted my computer and that fixed the problem.

My command isn't running but why does it work in cmd and not in VS?

I am trying to write some C++ code to execute cmd commands but even though i tested the commands in cmd and they work just fine, my VS code doesn't work. Here is the part that isn't working:
system("ssh-keygen -t ecdsa 521 -C \"ECDSA 521 bit Keys\"");
My console shows me that the command is not recognised, but it should be. Can anybody help me?
'ssh-keygen' is not recognized as an internal or external command,
operable program or batch file.
I am using Windows at the moment but i haven't found another alternative to creating these ecdsa keys other than running this command in cmd.
'ssh-keygen' is not recognized as an internal or external command, operable program or batch file
is an error generated from Command prompt itself. I suspect you're using powershell when it work, so please try:
system("powershell \"ssh-keygen -t ecdsa 521 -C \"ECDSA 521 bit Keys\"\"");

Error in running functions of C++ package at command line

I am new to packages in C++ and I am using Visual Studio to build the package. I have done that successfully but I can't run the functions of that package at the command line.
Error is
'graphgen' is not recognized as an internal or external command,
operable program or batch file.
I am following the instructions from this link
https://snap.stanford.edu/snap/install.html
where it says
After the code is compiled, as shown above, it can be executed. The graphgen application is used here as an example.
To run the graphgen example, open a command line application and execute the following command:
cd examples/graphgen
./graphgen -g:w -n:1000 -k:4 -p:0.1 -o:smallworld.txt
The command generates a Watts-Strogatz small-world graph where each node is connected to k=4 closest nodes and with the rewiring probability of p=0.1.
What to do?

django-shortcuts command prompt error 'C:\Program' is not recognized as an internal or external command, operable program or batch file

Trying to run "django r" command from a django shortcuts https://github.com/jgorset/django-shortcuts
Getting the error 'C:\Program' is not recognized as an internal or external command, operable program or batch file
Any ideas how to fix this?
Found some questions with the same error 'C:\Program' error. Not sure how it could help in my case.
Command Prompt Error 'C:\Program' is not recognized as an internal or external command, operable program or batch file
This answer is based about assumptions but I hope it helps you.
I thinks you have installed Python in a directory like C:\Programs Files on you computer. In django-shortcuts, python is called by using sys.executable directly in command line (here) and Windows call the first part until space as a executable.
You have different ways to solve this, including :
use '"%s"' % sys.executable
change %(python)s to "%(python)s"
reinstall Python in another directory without space in path ...