Using Make and g++
Автор: ArProg
Загружено: 2018-02-12
Просмотров: 126
Описание:
This video shows how to create a VERY basic Makefile and how to use it to compile C++ code using g++. I also apologize for the coughing in the video. The weather here is drying me out.
********THINGS NOT STATED IN THE VIDEO*****
1. When creating a Makefile, the name of the file HAS to be "Makefile" minus the quotes with NO file extension.
2. Make is VERY picky about using spaces before inputting your g++ commands once again. In Komodo Edit or Notepad++, I have always just pushed TAB once and then started entering my g++ commands. The g++ commands must ALWAYS go AFTER the label (the line ending with a colon) and MUST always be TABBED ONCE. If some of you are getting away with using spaces instead of using TAB, then great! If you're having difficulties with Make, just keep that in mind.
3. Just like when executing your g++ commands, you must ALWAYS be in the same directory as you Makefile when using make. If not, then it will complain because it can't see your Makefile.
If you have any questions and/or difficulties with g++ and/or make, please ask them in the comments below and I will answer them as soon as humanly possible ( because of... well... life).
Once again, thank you for watching and Happy Coding!
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: