ColinPitrat / caprice32

An emulator of the Amstrad CPC 8bit home computer range.
GNU General Public License v2.0
147 stars 32 forks source link

Problem with std::filesystem on gcc #212

Closed NotFound closed 3 years ago

NotFound commented 3 years ago

Compiling the current version with gcc 8.3.0 gives me error with std::filesystem

Searching about the problem, I found that gcc needs to specify a library for its use, stdc++fs

To be able to add the library, I changed the 'LIBS = ...' to 'LIBS += ...' in the makefile

Then: LIBS=-lstdc++fs make

builds it fine and works

ColinPitrat commented 3 years ago

This should be solved now. Thanks for reporting the issue!