There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply () below.
If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.
Join the Discussion. Help a fellow learner on their journey.
Ask or answer a question about this exercise by clicking reply () below!
Agree with a comment or answer? Like () to up-vote the contribution!
I might be mistaking your issue but chances are the actual file hasn’t been saved and updated. Try using the run (or save) button below the text editor section to make sure it has saved an updated version of your file before compilation.
I’ve installed MSYS2 according to these directions here as per the Codecademy lesson: https://www.msys2.org/ and setup the environment variables. Now when I compile in CMD there’s no issue, but when I try to execute I get the error: “’.’ is not recognized as an internal or external command,
operable program or batch file.” Why is g++ recognized and ./ is not? I checked the folder C:\msys64\mingw64\bin where I saved the file and I have g++ in the bin folder but not ./ Could that be part of the issue?
As it stated, the terminal doesn’t recognize “,” as a command. If you want to run the executable, you’ll have to type out the whole directory (e.g. C:\Projects\hello).
@method3337998875 in windows you dont have to use ./ to run the program simply type the name
eg. g++ hello.cpp -o hello you type hello in the command line to run the program
Is MSYS2 for windows? I don’t understand if it is for linux users trying to build windows apps
and what is the codecademy lesson? I want to compile c++ programs
When I resume the course always send me to this lesson fix it I already have done the logical operators I hope someone of the staff will read this if not where I can report this?