Closed flarn2006 closed 4 years ago
It seems your compiler doesn't support C++17 features. GCC 7 or later is required to build this library.
Wtih
$ g++ --version
g++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Copyright (C) 2017 Free Software Foundation, Inc.
I could compile the included example:
g++ -o example example.cpp -std=c++17
After fixing the deprecation:
Yep, using a newer version of GCC fixed it. Thanks :)
I'm trying to compile the following test program:
When I compile using
g++ -o main main.cpp -lgd
, I get:When I add
--std=c++11
, I get even more errors, and 14 and 17 don't help either.Please let me know if you need any more information.