In order to figure out the default paths used by gcc
/g++
, as well as their priorities, you need to examine the output of the following commands:
- For C:
gcc -xc -E -v -
- For C++:
gcc -xc++ -E -v -
The credit goes to Qt Creator team.
More Related Contents:
- C/C++ with GCC: Statically add resource files to executable/library
- VS Code will not build c++ programs with multiple .ccp source files
- Compiling multithread code with g++
- Compilation fails with “relocation R_X86_64_32 against `.rodata.str1.8′ can not be used when making a shared object”
- Linking libstdc++ statically: any gotchas?
- C++: Safe to use longjmp and setjmp?
- How to get a stack trace for C++ using gcc with line number information?
- C++ new operator thread safety in linux and gcc 4
- Linking g++ 4.8 to libstdc++
- When including header files, is the path case sensitive?
- Proper way to create unique_ptr that holds an allocated array
- Linking problems due to symbols with abi::cxx11?
- Cross Platform Floating Point Consistency
- C++11: How to alias a function? [duplicate]
- Install gcc on linux with no root privilege
- Forcing or preventing use of a particular minor version of libstdc++
- version `CXXABI_1.3.8′ not found (required by …) [duplicate]
- Default libraries linked in by gcc?
- _GLIBCXX_USE_CXX11_ABI, GCC 4.8 and ABI compatibility
- Why are designated initializers not implemented in g++
- Undefined reference to process(std::__cxx11::basic_string … ) when compiling affdex linux sample applications
- generates same number in Linux, but not in Windows
- How to assert if a std::mutex is locked?
- How does #include work in C++? [duplicate]
- What is the advantage of GCC’s __builtin_expect in if else statements?
- GCC: Difference between -O3 and -Os
- Using bts assembly instruction with gcc compiler
- Returning struct containing array
- Check keypress in C++ on Linux
- How to get the username in C/C++ in Linux?