Chapter 3

Programming in Linux


check Understanding programming

check Exploring software-development tools in Linux

check Compiling and linking programs with GCC

check Using make

check Debugging programs with gdb

check Understanding the implications of GNU, GPL, and LGPL

Linux comes loaded with all the tools you need to develop software; often, all you have to do is install them. In particular, Linux has all the GNU software-development tools, such as GCC (C and C++ compiler), GNU make, and the GNU debugger. Whereas the previous two chapters look at some simple tools and shell scripts, this chapter introduces you to programming, describes the software-development tools, and shows you how to use them. Although I provide examples in the C and C++ programming languages, the focus isn’t on showing you how to program in those languages but on showing you how to use various software-development tools (such ...

Get Linux All-In-One For Dummies, 6th Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.