Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C++ Libraries similar to C#?

Tags:

c++

linux

I'm coming to C++ from a .Net background. Knowing how to use the Standard C++ Libraries, and all the syntax, I've never ventured further. Now I'm looking learning a bit more, such as what libraries are commonly used? I want to start getting into Threading but have no idea to start. Is there a library (similar to how .net has System.Threading) out there that will make it a bit easier? I'm specifically looking to do Linux based network programming.

like image 564
cam Avatar asked Apr 02 '10 16:04

cam


People also ask

What are the best C++ libraries to use?

STL is a generic library that provides solutions to managing collections of data with modern and efficient algorithms. I would say the C++ standard library including STL, is the daily bread and butter of a C++ programmer. 2. Boost Of course, the next on the list should be Boost. I discussed the FileSystem library in the previous section.

What is the C standard library?

The C Standard Library is a set of C built-in functions, constants and header files like <stdio.h>, <stdlib.h>, <math.h>, etc. This library will work as a reference manual for C programmers. The C Standard Library is a reference for C programmers to help them in their projects related to system programming.

What is this C library page for?

The objective of this page is to build a comprehensible list of open source C libraries, so that when one needs an implementation of particular functionality, one need not waste time searching on Google. If you know a library that might be useful to others, please add a link to it here.

What is the difference between C++ Standard Template Library and STL?

Standard Template Library is a subset of the standard library that deals with containers, iterators, and algorithms. STL is a generic library that provides solutions to managing collections of data with modern and efficient algorithms. I would say the C++ standard library including STL, is the daily bread and butter of a C++ programmer.


3 Answers

For C++, Boost is your everything. Threading and networking are among the things it offers. But there's much more:

  • Smart pointers
  • Useful containers not found in the STL, such as fixed-size arrays and hashtables
  • Closures
  • Date/time classes
  • A foreach construct
  • Min/max functions
  • Command line option parsing
  • Regular expressions
like image 172
Thomas Avatar answered Oct 13 '22 11:10

Thomas


As the others have said, Boost is great. It implements the C++ Technical Report 1 in addition to tons of other stuff, including some mind-blowing template metaprogramming tricks.

For other cross-platform features not provided by Boost, I've had very good luck with a library called Poco. I've worked on commercial projects that incorporated its simple HTTP server, for instance, and it treated us quite well.

like image 40
sblom Avatar answered Oct 13 '22 10:10

sblom


lots of boost suggestions, but Qt is another good option. It's got great support for threading and networking along with pretty much everything else.

http://qt.nokia.com/products

like image 38
Graphics Noob Avatar answered Oct 13 '22 11:10

Graphics Noob