r/cpp • u/User_Deprecated • Jun 18 '26
GCC 17 Lands Initial Infrastructure For C++29
https://www.phoronix.com/news/GCC-17-std-CPP29-Experimental
130
Upvotes
r/cpp • u/User_Deprecated • Jun 18 '26
View all comments
Show parent comment
8
u/not_a_novel_account cmake dev Jun 18 '26 edited Jun 18 '26
You're doing an
import stdin the main project, sostd.objis being provided there.The problem is when you try to use a static library which wants
import stdin a project which does not itself doimport std. CMake does not bundlestd.objinto the archive, unless someone else provides it the link fails.It's entirely possible VS is bundling
std.objand this "just works" for them even when consumed by projects which don't doimport stdthemselves, like a plain C project. That's certainly a solution. I need to boot up a Windows box and check at some point.