https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66214
--- Comment #23 from Magnus Fromreide <gcc at magfr dot user.lysator.liu.se> --- One more question - you are using the command g++ -g file_that_include_ssl_h.cpp right? Building it as C works for me as well.