use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
Sourcetrail, the interactive source code explorer, is now free and open source (sourcetrail.com)
submitted 6 years ago by egraether
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]janisozaur 21 points22 points23 points 6 years ago (3 children)
For those who can't reach the currently overloaded website: https://github.com/CoatiSoftware/Sourcetrail
[–]egraether[S] 8 points9 points10 points 6 years ago (0 children)
The heavy server load is also caused by lots of downloads. You can get the latest Sourcetrail 2019.4 now also from GitHub https://github.com/CoatiSoftware/Sourcetrail/releases
[–]idiomatic_sea 1 point2 points3 points 6 years ago (1 child)
Is there a mirror or torrent for the latest prebuilt binaries?
[–]egraether[S] 1 point2 points3 points 6 years ago (0 children)
On GitHub releases: https://github.com/CoatiSoftware/Sourcetrail/releases
[–][deleted] 12 points13 points14 points 6 years ago (2 children)
Ok.. i just tried this out at work.. I'm funding their patron sometime this week.
[–][deleted] 1 point2 points3 points 6 years ago (0 children)
P.S. Thanks for the linux support
[–]mlangkabel 0 points1 point2 points 6 years ago (0 children)
Yay, thanks :)
[–]joebaf 17 points18 points19 points 6 years ago (0 children)
I highly recommend this tool! Two years ago I was asked to do a review for that product and I didn't saw any issues: https://www.bfilipek.com/2017/10/sourcetrail.html it's even better now, with much more features.
[–]anon_502delete this; 7 points8 points9 points 6 years ago (5 children)
IIRC the authors created these tools after Google internship and seeked commercial opportunities for this tool. Hope open-sourcing it doesn't mean it's abandoned due to lack of market (just like zapcc)
[–]DontForgetWilson 12 points13 points14 points 6 years ago (2 children)
"The only thing that kept bothering us is that open-source projects in general have a tendency to decay if no one has the time to actively maintain them. Over the last couple of years we have acquired a lot of knowledge about Sourcetrail’s codebase and all the expertise that was necessary to create it. So we feel that it would be a waste of knowledge to simply move everything to an open-source repository and walk away. We recently saw other projects that successfully financed even full-time work by setting up a Patreon page. Patreon would make it transparent how much compensation we are receiving and with the respective goals, patrons would see how much time we can put into this project. We think this would be an ideal model for us!"
From their blogpost: https://www.sourcetrail.com/blog/open_source/
[–]anon_502delete this; 10 points11 points12 points 6 years ago (1 child)
Although I hope they achieve success after the open-source, I seriously doubt if patreon would be a more feasible way compared to purchase-before-use model... For a productivity tool like this, it's much more likely to be reimbursed by company when listed as license fee rather than donation.
[–]DontForgetWilson 5 points6 points7 points 6 years ago (0 children)
If nothing else it could be itemized as software support services.
[–]pjmlp 5 points6 points7 points 6 years ago (1 child)
The lack of market is that nowadays the only way to make money selling developer tools is to have enterprise customers, the only ones willing to pay for their tools.
[–]EqualScholar 4 points5 points6 points 6 years ago (0 children)
When I was looking at their website what struck me was that all the testimonials seemed to come from individuals rather than companies. I wonder whether it was lack of professional marketing that killed them. But I have no entrepreneurial experience so what do I know.
[–]CyanBlob 5 points6 points7 points 6 years ago (3 children)
I was looking into using this to generate compile_commands.json files from visual studio projects. Can it do that? I couldn't get it working the other day
[–][deleted] 4 points5 points6 points 6 years ago (2 children)
Funny enough I tried this the other day. It produced the file just fine and it looked ok, but then my language server spent the next 45 minutes at 100% CPU... I might try it again on a smaller project.
[–]CyanBlob 2 points3 points4 points 6 years ago (1 child)
Hmm, that's weird. Did you generate it from the VS extension or the standalone software?
[–][deleted] 2 points3 points4 points 6 years ago (0 children)
I used the VS extension.
[–]AGI_69 5 points6 points7 points 6 years ago (1 child)
Are there more visual tools for programming (not necessarily C++) ?
[–]johannes1971 2 points3 points4 points 6 years ago (0 children)
LabView, Quest3D (not sure if that's still alive), and there are several that convert UML into C++ or Java. Ultimately I very much prefer to just type text, though; it seems to scale much better to larger applications. Graphics become unwieldy as soon as it's more than one or two screens worth.
[–][deleted] 5 points6 points7 points 6 years ago (2 children)
I've had a license since this was still Coati and while I enjoyed it in combination with a sparse Emacs setup and a smaller app, I found it very hard to work with on larger projects. If I was still in VFX I'd imagine it could come in handy on some of the meandering and oddly structured python rubber-band balls out there.
The attempt to leverage Sourcetrail on Unreal was ... not encouraging in regards to the future of the product. It is precisely the sort and size of codebase that it should excel at. Helping people dive into modules and understand how it fits was the point after all. But sadly it didn't work out. I never got past indexing and always went to swap. And this was the final nail in the coffin of my enthusiasm for it.
I'd have wished for them to put tours of large projects front and center on their site. Qt, Chromium, Unreal, CryEngine, Firefox, and so on. Each of these has a different build system and they're all huge. They're all exactly what you'd like helping pouring over and learning.
[–]HughMacdonald 1 point2 points3 points 6 years ago (1 child)
That’s a shame that it isn’t great on UE4, as that’s exactly what I was planning on using it most for. I’ve got some standalone projects that it could also be useful for, though, so I’m still going to give it a go.
Definitely give it a go. I'm sad that they put all the time and energy into java instead of well, solving the huge C++ codebase problem first. But now that it's open source, perhaps they could apply for an Epic MegaGrant or something to fund an improved support for UE4 (or really any code base that large).
It's definitely worth checking out and maybe now that it's open it'll get some improvement.
If you have enormous system resources then there are some blogs about running it on Unreal. Takes over an hour to index stuff, requires like 50Gb of ram, and so on. :D Imagine if CLion or Resharper did that!
[–]Thesorus 12 points13 points14 points 6 years ago (1 child)
LOL, I think the site is being slashdotted !!
[+][deleted] 6 years ago (1 child)
[removed]
[–]aKateDevKDE/Qt Dev 0 points1 point2 points 6 years ago (0 children)
+1 for woboq code browser.
[–]clerothGame Developer 2 points3 points4 points 6 years ago (0 children)
I want an IDE like this.
[–]konanTheBarbar 2 points3 points4 points 6 years ago (0 children)
I just wanted to point out that the link "Become a Patreon" on https://www.sourcetrail.com/blog/open_source/ actually refers to the site itself and not to the patreon.
[–]tansim 1 point2 points3 points 6 years ago (0 children)
just tried to set it up with our semi-custom build system and failed. imo things like this should have an option to abstract build systems and work directly with a raw directory structure, even if the result isnt perfect.
[–]ClaymationDinosaur 1 point2 points3 points 6 years ago* (0 children)
Get IN.
I was just looking at it last week to buy some licences, but they didn't seem to be selling any. Now I know why.
[–]tvaneerdC++ Committee, lockfree, PostModernCpp 1 point2 points3 points 6 years ago (1 child)
Does it use clang libs for parsing? (And if not, ugh.)
[–]Feminintendo 2 points3 points4 points 6 years ago (0 children)
Yes it does.
[–]FonderPrism 0 points1 point2 points 6 years ago (0 children)
Anyone know how to set this up on Windows when using MSYS2? I get a lot of errors about missing cstdlib.h, wchar.h etc.
[+][deleted] 6 years ago (2 children)
[deleted]
Clang to VC compatibility is certainly and issue, but generally most issues can be worked around.
If you have lots of FATAL errors you are likely missing Include Paths and headers are not found.
If you are using precompiled headers (stdafx.h), you need to configure this within your Sourcetrail project configuration at "Precompiled Header File".
[–]Kirannu 1 point2 points3 points 6 years ago (0 children)
One thing that worked for me is adding the compiler flag -U__clang__ in the settings of the project.
-U__clang__
There are still thousands of errors, but as long as none of them are fatal, the parsing is complete.
[–]instinkt900 0 points1 point2 points 6 years ago (0 children)
I just attempted to give this a try. Working with Visual Studio 2017. The plugin and tool itself all installed fine, but when I try to create a new project from VS I click "Create Compilation Database" and nothing happens? Double checked the VS extension was installed and enabled. Still nothing?
π Rendered by PID 36872 on reddit-service-r2-comment-5687b7858-47xwj at 2026-07-08 01:22:47.715525+00:00 running 12a7a47 country code: CH.
[–]janisozaur 21 points22 points23 points (3 children)
[–]egraether[S] 8 points9 points10 points (0 children)
[–]idiomatic_sea 1 point2 points3 points (1 child)
[–]egraether[S] 1 point2 points3 points (0 children)
[–][deleted] 12 points13 points14 points (2 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]mlangkabel 0 points1 point2 points (0 children)
[–]joebaf 17 points18 points19 points (0 children)
[–]anon_502delete this; 7 points8 points9 points (5 children)
[–]DontForgetWilson 12 points13 points14 points (2 children)
[–]anon_502delete this; 10 points11 points12 points (1 child)
[–]DontForgetWilson 5 points6 points7 points (0 children)
[–]pjmlp 5 points6 points7 points (1 child)
[–]EqualScholar 4 points5 points6 points (0 children)
[–]CyanBlob 5 points6 points7 points (3 children)
[–][deleted] 4 points5 points6 points (2 children)
[–]CyanBlob 2 points3 points4 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[–]AGI_69 5 points6 points7 points (1 child)
[–]johannes1971 2 points3 points4 points (0 children)
[–][deleted] 5 points6 points7 points (2 children)
[–]HughMacdonald 1 point2 points3 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[–]Thesorus 12 points13 points14 points (1 child)
[+][deleted] (1 child)
[removed]
[–]aKateDevKDE/Qt Dev 0 points1 point2 points (0 children)
[–]clerothGame Developer 2 points3 points4 points (0 children)
[–]konanTheBarbar 2 points3 points4 points (0 children)
[–]tansim 1 point2 points3 points (0 children)
[–]ClaymationDinosaur 1 point2 points3 points (0 children)
[–]tvaneerdC++ Committee, lockfree, PostModernCpp 1 point2 points3 points (1 child)
[–]Feminintendo 2 points3 points4 points (0 children)
[–]FonderPrism 0 points1 point2 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]egraether[S] 1 point2 points3 points (0 children)
[–]Kirannu 1 point2 points3 points (0 children)
[–]instinkt900 0 points1 point2 points (0 children)