192

I've been out of the C++ game for about 10 years and I want to get back in and start on a commercial app. What libraries are in use these days?

  • User interface (e.g, wxWidgets, Qt)
  • Database
  • General purpose (e.g. Boost, Loki, STL)
  • Threading
  • Testing
  • Network/sockets

I looking to be cross-platform compatible (as much as possible out-of-the-box).

What libraries to do you rely on? What features do they provide that make them "indispensable"?

See my answer below for a summary.

Community
  • 1
  • 1
Ryan Emerle
  • 14,410
  • 8
  • 47
  • 67

7 Answers7

202

Cross-platform libraries that are free for commercial (or non-commercial) applications

Feel free to expand this list




Links to additional lists of open source C++ libraries:

http://en.cppreference.com/w/cpp/links/libs

onqtam
  • 3,988
  • 1
  • 23
  • 43
Ryan Emerle
  • 14,410
  • 8
  • 47
  • 67
31

Sorry for repeating some of the stuff already written, but:

(Should at least get you started)

Wladimir Palant
  • 53,866
  • 11
  • 93
  • 123
rjnilsson
  • 2,233
  • 14
  • 20
11

On Windows...

ATL for COM development WTL for user interface

FrodoH
  • 101
  • 3
10

CGAL is an excellent c++ library for computational geometry

www.cgal.org

yang-qu
  • 2,064
  • 4
  • 20
  • 26
8

http://loki-lib.sourceforge.net/ might also be good addition.

It's another template library, which introduces typelists, and implementations for various design patterns.

I never used it, but I read Alexandrescu's book to get a better understanding of templates.

Ronny Brendel
  • 4,571
  • 5
  • 33
  • 54
  • 12
    Loki's ScopeGuard will **change your life**. Seriously. You'll be stronger, faster, and more attractive to the opposite sex. – j_random_hacker Apr 22 '09 at 16:26
5

CppUnit for unit testing and test driven development

Andrew Stein
  • 11,807
  • 4
  • 30
  • 43
0

Besides all the great libraries already listed, I find the combination of xerces for XML (including XSD validation) and xalan for XSLT to be useful (xalan is built on top of xerces). AFAIK neither QT or POCO have XSLT functionality (unless it's been added since I last used them).

Ralf
  • 9,082
  • 2
  • 24
  • 44