I would like to add some extra include/lib directories besides the default ones for MinGW to search upon compilation. The reason for this is because the hard drive I current
Use -I
directive for extra includes and -L
directive for extra library paths such as:
g++ [...] -I C:\qt\include -L C:\qt\lib
You can use multiple -I
and -L
options.
You can set environment variables CPLUS_INCLUDE_PATH
for include directories and LIBRARY_PATH
for library directories. More information can be found in Environment Variables Affecting GCC