Add extra include/lib paths to MinGW

后端 未结 2 2071
醉话见心
醉话见心 2020-12-24 09:31

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

2条回答
  •  抹茶落季
    2020-12-24 10:00

    Use -Idirective for extra includes and -Ldirective for extra library paths such as:

    g++ [...] -I C:\qt\include -L C:\qt\lib
    

    You can use multiple -Iand -Loptions.

提交回复
热议问题