c++ - Qt Doesn't Seem to Include MinGW Includes -
my problem today in compiling qt application command line on windows using qt 5.1.0 mingw. qt installation @ c:\qt\qt5.1.0-mingw.
it compiles fine in qt creator, command line seems not include headers c:\qt\qt5.1.0-mingw\tools\mingw48_32\i686-w64-mingw32\include, #include in of code.
for example, #include <ws2tcpip.h>, in c:\qt\qt5.1.0-mingw\tools\mingw48_32\i686-w64-mingw32\include, in 1 of c++ files, , utilize function getaddrinfo, declared in ws2tcpip.h.
this compiles fine in qt creator, compiling command line error: 'getaddrinfo' not declared in scope.
this 1 example, , have couple of others things defined in header files residing in i686-w64-mingw32/include folder seem not defined when compiling on command line.
why compile differently between qt creator , command line, , how can prepare this?
locks did not setup environment correctly. take @ project-kit settings in qtcreator (build environment) reference.
c++ windows qt command-line mingw
No comments:
Post a Comment