What book or online resource do you suggest to learn C ++ programming on Linux?

I have experience with C ++ programming on Windows. Now I need to program some Linux applications. Is there any resource that helps me quickly get the information I need about Linux technologies available for C ++ developers?

+2


source to share


4 answers


C ++ programming on Linux isn't all that different from the kernel. Linux compilers are generally more standardized than MSVC; however, that is changing as MSVC becomes a better compiler. The difference has more to do with the environment and the libraries available. Visual Studio is not available (obviously), but some other frameworks like Visual SlickEdit and Eclipse are available on both.

The build system varies widely and will likely be dictated by your preference between Gnome, KDE, or the ubiquitous command line. Personally, I find the latter to be the cleanest and most consistent. If you're done on the command line, study GNU Make and grab a copy of GNU Autoconf, Automake, and Libtool . This will add very well to the GNU command line development table.

Debugging is very different in that VS provides a nice GUI debugging environment. Most Linux environments simply port a command line debugger (usually gdb) with a graphical interface. The result is less satisfying if you expect a well-integrated debugger. I would recommend that you be comfortable with gdb. There are some decent tutorials for gdb on the internet . Just google for their group. Once you're a little comfortable read the online guide for really neat stuff.



Another choice is to use any development environment packaged with your windowing system, or use something like Eclipse and some C ++ plugin

For books on the topic, Advanced Programming in UNIX is a must-read. UNIX Systems Programming is also well readable as it gives you a solid foundation in shells, processes, and what not. I would recommend a guide for POSIX programmers and Guide POSIX.4 programmers , because they give you a lot of material for system programming.

With all that said, enjoy your foray into an operating system that really caters to programmers;)

+4


source


I am currently running a Windows to Linux migration for the program and so far I have found that man

both are grep

excellent. Instead of looking for function prototypes on MSDN (or similar), I just use man

.

If I need some sample code, grep

via an existing project that has some similarities to mine, it is a big help. Or, if there is a project similar enough to warrant this, create an LXR of their codebase to make it easier to read, really helps a lot.



All in all, open source Linux has been the largest resource for learning Linux programming.

Also Stavens Advanced UNIX programming has been a huge boon. But as far as IDEs and the like, call me luddite, but I just like vim

and make

.

+3


source


+2


source


I am using die.net and am looking at the Open Group Site , http://www.opengroup.org/onlinepubs/000095399/functions/ {function} .html. They have the same information as man . I am using SciTE as well as the C API and Open POSIX as hotkeys as described here .

+1


source







All Articles