2026-02-10 11:59 UTC
@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.
Replies (1)
-
@hiddenalpha@mastodon.social 2026-02-10 14:51
@PeterSommerlad@mastodon.social Had another thought: As you mentioned cmake: What about invoking gcc directly? Can it find the lib this way? g++ -o main.out -Wall -Werror -pedantic main.cc if so, then likely the issue is with cmake.