[Bug c++/84744] cannot use glibc 2.27 with gcc 7.3
development@faf-ltd.com
gcc-bugzilla@gcc.gnu.org
Wed Mar 7 10:16:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84744
--- Comment #7 from Peter VARGA <development@faf-ltd.com> ---
This is the original version:
#include <algorithm>
#include <atomic>
#include <chrono>
#include <cmath>
#include <condition_variable>
#include <cstdlib>
#include <forward_list>
#include <fstream>
#include <functional>
#include <iostream>
#include <map>
#include <mutex>
#include <regex>
#include <set>
#include <string>
#include <thread>
#include <vector>
#include <execinfo.h>
#include <gnu/libc-version.h>
#include <libgen.h>
#include <locale.h>
#include <signal.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/poll.h>
#include <sys/resource.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <sys/sysinfo.h>
#include <unistd.h>
#include <mysql/my_global.h>
#include <mysql/mysql.h>
Before I found now finally a solution I had to sort out the order - it was not
really that trivial and very annoying.
This is now how it works and - as it should be - the order of the include files
in the project does NOT matter anymore.
BUT, it is very important that /usr/include is last in the list, otherwise it
won't compile:
-nostdinc
-I /FaF/curl/include
-I /usr/include/mysql
-I /FaF/lib64/gcc/x86_64-suse-linux/7.3.0/include-fixed
-I /FaF/include/c++/7.3
-I /FaF/include/c++/7.3/x86_64-suse-linux/
-I /FaF/lib64/gcc/x86_64-suse-linux/7.3.0/include
-I /FaF/glibc/include/
-I /usr/include
More information about the Gcc-bugs
mailing list