[Development] Building Qt5 on windows
Jonathan Liu
net147 at gmail.com
Fri Sep 14 11:10:45 CEST 2012
Hi Kai,
On 14/09/2012 6:45 PM, kai.koehne at nokia.com wrote:
>>> From: development-bounces+kai.koehne=nokia.com at qt-project.org [development-bounces+kai.koehne=nokia.com at qt-project.org] on behalf of ext Jonathan Liu [net147 at gmail.com]
>> GCC uses CPATH with paths separated by colons instead of INCLUDE.
>> GCC uses LIBRARY_PATH with paths separated by colons instead of LIB.
>>
>> INCLUDE and LIB are used by Microsoft Visual C++ Compiler not GCC.
> I'm not sure about the exact relationship between CPATH/INCLUDE and LIBRARY_PATH/LIB, but what I know is that gcc does care about INCLUDE and LIB. I managed to run mingw32-make one or two times in an environment with INCLUDE and LIB set to MSVC, and the result was that gcc picked up the wrong headers ...
CPATH and LIBRARY_PATH in the GCC documentation:
http://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html
LIB for Visual C++ Linker:
http://msdn.microsoft.com/en-us/library/6y6t9esh.aspx
INCLUDE for Visual C++ Compiler:
http://msdn.microsoft.com/en-us/library/kezkeayy.aspx
There could be other things that are affected by INCLUDE and LIB
environment variables that influence the invocation of GCC.
GCC is not affected by the INCLUDE and LIB environment variables if you
just call gcc directly.
Regards,
Jonathan
More information about the Development
mailing list