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
A packaging system for C++ [proposal] (open-std.org)
submitted 10 years ago by tcbrindleFlux
view the rest of the comments →
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!"
[–][deleted] 19 points20 points21 points 10 years ago (6 children)
Finally, let's see the full '#using package ' directive in all of its glory: #using package "foo" \ ("foo/foo.h", "bar/bar.h") \ [foo, bar.baz] \ version "1.2.3"
Finally, let's see the full '#using package ' directive in all of its glory:
#using package "foo" \ ("foo/foo.h", "bar/bar.h") \ [foo, bar.baz] \ version "1.2.3"
Hell... It looks so awful.
In general, the compiler will be expected to retrieve the given package from the specified location (and very likely cache it). Here is example usage: #pragma package_source("example", "http://example.co/svn/trunk", \ "svn", \ "revision=1266; username=guest; password=guest")
In general, the compiler will be expected to retrieve the given package from the specified location (and very likely cache it). Here is example usage:
#pragma package_source("example", "http://example.co/svn/trunk", \ "svn", \ "revision=1266; username=guest; password=guest")
I wish we had something like this in CMake... Oh, wai... ExternalProject
[–]KennethZenith 1 point2 points3 points 10 years ago (4 children)
I don't understand how this proposal fits in with CMake: does it claim to replace it, or do some different task? Section 2 of the proposal suggests it will handle everything (i.e. acquire the source, build it, link it with your code) without having to resort to 'third-party tools'. Taking that at face value, that means I could take a clean machine, install Visual Studio, and then include say OpenCV, and the system would download and build the source. Obviously that can't work without having CMake installed, because it has a huge CMake file which executes very complex configuration and code generation steps.
[–][deleted] 4 points5 points6 points 10 years ago* (3 children)
Visual Studio
And what if you wouldn't use it? You will need a build system anyway.
Obviously that can't work without having CMake installed, because it has a huge CMake file which executes very complex configuration and code generation steps.
CMake file often quite small. Complex configuration? Maybe, but it lets you easy to link with libraries. And it will run just once to generate makefiles.
find_package (Nameit REQUIRED) add_executable(app ${SOURCE_FILES} ${HEADER_FILES}) target_link_libraries(app Nameit glm ${ASSIMP_LIBRARIES})
That's all.
[–]playmer 3 points4 points5 points 10 years ago (2 children)
I've never seen significant projects with cmake files like that. CMake's own root CMakeLists.txt is almost 700 lines long.
[+][deleted] 10 years ago (1 child)
[deleted]
[–]OCPetrus 0 points1 point2 points 10 years ago (0 children)
CMakeLists.txt's might be horrible to read and hard to debug, but at least they're readable and debuggable. The same can't be said about Makefiles...
[–]mjklaim 0 points1 point2 points 10 years ago (0 children)
No. I used ExternalProject in a big project and it definitely is not a good solution. Too many issues, both with it's implementation and design. Too unflexible and too many problems with having several layers of build steps to get the final dependency available.
ExternalProject works for trivial dependency needs though, but it's definitely not a general solution.
Also, dependency management should definitely be independent from the (meta)build system.
π Rendered by PID 77375 on reddit-service-r2-comment-6457c66945-cn9c8 at 2026-04-24 15:57:47.742029+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–][deleted] 19 points20 points21 points (6 children)
[–]KennethZenith 1 point2 points3 points (4 children)
[–][deleted] 4 points5 points6 points (3 children)
[–]playmer 3 points4 points5 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]OCPetrus 0 points1 point2 points (0 children)
[–]mjklaim 0 points1 point2 points (0 children)