@PeterSommerlad@mastodon.social
2026-02-10 10:11 UTC
@hiddenalpha@mastodon.social with brew it seems to come already with gcc. however, the bmi for the standard library is generated. I am as far as i got the last time when trying this. Import std worked then, when std.cc compiled together with my main.cpp but I couldn't figure out how to link the libstc++ then successfully.
#Cplusplus #cpp #modules #cmake #cppmodules #importstd
Replies (1)
-
@hiddenalpha@mastodon.social 2026-02-10 11:59
@PeterSommerlad@mastodon.social Hmm. I think as soon its installed it should be included in the linker flags by default? Usually I only use C99 (no C++). And I'm on devuan with apt. For this, among `gcc`, I have to also install `libc6-dev` (i guess `libc++-dev` for C++?) Maybe somewhere is `--nostdlib`, `--nolibc` `--nostdlibc++` or similar, which would explicitly exclude stdlib while linking? Overall my experience with C++ and also cmake is limitted 🙃 Guess have to wait for someone else to help.