Linux C++ Tutorials?

T

Tohz

Anyone has good Linux C++ tutorials? cuz I've been looking on google
and altavista and couldnt find any good tutorials.
 
P

Phlip

Tohz said:
Anyone has good Linux C++ tutorials? cuz I've been looking on google
and altavista and couldnt find any good tutorials.

That's because Linux itself is written in C, and everyone just assumes
someone else documented its GNU g++ compiler.

Google for WROX and "Programming Linux" - you'l find a nice book, with an
online code repository. If it only does C, just swap in C++ in the Makefile
and you should be able to get started.
 
G

GTO

A Linux C++ tutorial does not make sense to me. Linux usually ships with GNU
C++ (called g++), which is one of the most compliant C++ compilers
available. A good textbook about C++ and a good book about Linux programming
(mostly using C examples that explain inter process communication, socket
programming, etc.) will do wonders.



One of the best things about Linux is that it provides an excellent
environment to program in any reasonable programming language. And unlike on
Micro$oft 200X, C++ on Linux does not come with humongous C++ libraries,
which lure the inexperienced programmer into believing that such libraries
are really necessary to write efficient code and forcing the users to buy
countless books about these extension libraries (such as books about visual
studio 2003, 2005, 2007, 2009.). Such platform dependent libraries appear to
me like traps to make people write platform dependent code that is under the
control of.......but that's not really the topic of your question.



To get back to your question, you might want to buy:



1) Stanley B. Lippman and Josee Lajoie, C++ Primer, Third Edition (or
later edition).

2) John Shapley Gray, Interprocess Communications in Linux: The Nooks
and Crannies



As a first exercise, you might want to write you own C++ wrapper class for
TCP socket communication and a nice class to handle mutex locks for pthread
programming. If you need examples in how to do this, you can look into the
source of wxWindows (now called wxWidgets ????), which you can get from
www.wxwindows.org.



Gregor
 
T

Tohz

GTO said:
A Linux C++ tutorial does not make sense to me. Linux usually ships with GNU
C++ (called g++), which is one of the most compliant C++ compilers
available. A good textbook about C++ and a good book about Linux programming
(mostly using C examples that explain inter process communication, socket
programming, etc.) will do wonders.



One of the best things about Linux is that it provides an excellent
environment to program in any reasonable programming language. And unlike on
Micro$oft 200X, C++ on Linux does not come with humongous C++ libraries,
which lure the inexperienced programmer into believing that such libraries
are really necessary to write efficient code and forcing the users to buy
countless books about these extension libraries (such as books about visual
studio 2003, 2005, 2007, 2009.). Such platform dependent libraries appear to
me like traps to make people write platform dependent code that is under the
control of.......but that's not really the topic of your question.



To get back to your question, you might want to buy:



1) Stanley B. Lippman and Josee Lajoie, C++ Primer, Third Edition (or
later edition).

2) John Shapley Gray, Interprocess Communications in Linux: The Nooks
and Crannies



As a first exercise, you might want to write you own C++ wrapper class for
TCP socket communication and a nice class to handle mutex locks for pthread
programming. If you need examples in how to do this, you can look into the
source of wxWindows (now called wxWidgets ????), which you can get from
www.wxwindows.org.



Gregor


Thank you very much. :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,183
Messages
2,570,967
Members
47,516
Latest member
ChrisHibbs

Latest Threads

Top