Closed mbrunnen closed 3 years ago
Thanks, we some how never spotted it. Which compiler was you using?
Thanks, we some how never spotted it. Which compiler was you using?
Strange. I am using GCC 8.3.0:
Package: gcc
Version: 4:8.3.0-1
Priority: optional
Build-Essential: yes
Section: devel
Source: gcc-defaults (1.181)
Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>
Installed-Size: 46.1 kB
Provides: c-compiler, gcc-x86-64-linux-gnu (= 4:8.3.0-1)
Depends: cpp (= 4:8.3.0-1), gcc-8 (>= 8.3.0-1~)
Recommends: libc6-dev | libc-dev
Suggests: gcc-multilib, make, manpages-dev, autoconf, automake, libtool, flex, bison, gdb, gcc-doc
Conflicts: gcc-doc (<< 1:2.95.3)
Tag: devel::compiler, devel::lang:c, devel::library, implemented-in::c,
interface::commandline, role::devel-lib, role::metapackage,
role::program, suite::gnu, works-with::software:source
Download-Size: 5,196 B
APT-Manual-Installed: yes
APT-Sources: http://deb.debian.org/debian buster/main amd64 Packages
Description: GNU C compiler
This is the GNU C compiler, a fairly portable optimizing compiler for C.
.
This is a dependency package providing the default GNU C compiler.
Ok, I looked a bit into it and found this:
https://en.cppreference.com/w/cpp/filesystem#Notes:
Notes Using this library may require additional compiler/linker options. GNU implementation prior to 9.1 requires linking with -lstdc++fs and LLVM implementation prior to LLVM 9.0 requires linking with -lc++fs.
So, requiring a minimum compiler version in cmake would also do the trick.
Thanks for the PR. If you have questions or ideas feel free to contact me. Or look in the c-port channel of the inkle Discord
I had errors when linking:
My compiler:
Adding
stdc++fs
as library solved the issue.