Makefile help for a passionate very beginner coder

Hello All,

Shortly before the lockdown started in my country, I decided to learn coding with great ambitions to develop very unique desktop apps. During the lockdown I started with Python, but due to several external factors such as finances, personal commitments, etc, I did not complete the online course. During this period I certainly gained a great deal of respect for all the professional/beginner programmers/coders who have embarked on this journey. I unashamedly salute you good people!!

I have more recently conducted further research online, and I discovered that the general opinion is that C++ is a better and faster language for desktop apps. On Youtube I found several courses to follow and selected the fantastic course, namely “C++ Tutorial for Beginners - Complete Guide to Programming in C++ using Visual Studio Code on Linux”, made by @SavvyNik. Even with the differences between Linux and Windows, I felt that this course was for me. My plan is to continue the Python training after I am relatively comfortable with C++. The learning will never stop.

Before I explain my problem, please allow me to briefly describe my OS,

Acer Aspire 5520G laptop with a 240GIG SSD, 4 GIG RAM
Upgraded to Windows 10, with a 32-bit OS.

I do realise she is an older laptop, but I want to use her for the learning phase of coding at least.
Currently I have VSCode version 1.51.0 installed. As per SavvyNik, I also installed CodeRunner. Initially I encountered some frustrating configuration issues, and potentially might unknowingly still have. I hope to possibly correct this with your assistance.
As a result of the configuration issues, I then installed the GIT and MinGW32. When all appeared to be corrected, I continued with the course, which required the extension installation of C/C++ Makefile Project by Adriano Markovic. Then as per the course I had to start a new terminal and change the Makefile settings from line 10 to 14 as follows:
10 # Makefile settings - Can be customized.
11 APPNAME = C++
12 EXT = .cpp
13 SRCDIR = C:\Users\donal\Documents\Donald van Wyk documents\C++\C++
14 OBJDIR = obj

As per the settings above, I followed the course instructions to the letter and changed the APPNAME, and the source directory(line 13).

However, when I enter ‘make’ as required I get the following error:
make : The term ‘make’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

  • make
  •   + CategoryInfo: ObjectNotFound: (make:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    

I have tried to change the path in line 13 of the settings, but absolutely nothing has worked thus far.

It is my profound hope to find experienced coders on this forum, not only to resolve my current problem and other potential VSCode configuration issues, but to also have someone to turn to with future issues and possibly gain some solid advice during my journey.

If you are reading this and planning to help me, I honestly thank you from the very bottom of my heart!!

Sincerely
SuperDuck28

1 Like

Hi there, and welcome to the community!

This message means that your system doesn’t know where to find the make command. Probably because it’s a Linux tutorial and you’re using Windows.

If you don’t know what folder your make program lies within, you might not have installed it (make isn’t a native Windows command you see.) You can install make by following one of the answers in this StackOverflow thread.

The tutorial you’re following likely thinks that it’s been installed in a way that will make it available wherever you type make. To make a command available in this way you need to add it to your $PATH (your PATH can be thought of as a bunch of folders that your system checks to find a command you’ve typed in so that you don’t have to type in the full file path every time you want to run the command.)

Instructions for adding a folder to your $PATH on Windows

You’ll probably find a number of little things that don’t quite work when programming on Windows and following articles around the web. It’s all part of the journey!

Hope that helps and best of luck with your future programming!

Cheers,
Billy