[QBS] Is it possible to compile non-Qt Win32 and Linux applications?

Bornemann Joerg Joerg.Bornemann at theqtcompany.com
Wed Feb 11 21:20:54 CET 2015


> Is it possible to use qbs as general build system for Win32 and Linux applications with:
>
> - Visual C++
> - MinGW
> - GCC
> - clang

Yes, qbs is not restricted to Qt.

> I tried to build an application on Windows with Visual C++ but I cannot get past this:
> msvcrtd.lib(crtexe.obj):-1: error: LNK2019: unresolved external symbol main referenced in function __tmainCRTStartup

You don't have a main function but a WinMain function instead?
Then you must set the consoleApplication property of your product to false.

Product {
   consoleApplication: false
   ...
}

Actually, this is the default for MSVC. Did you explicitly set it to true?


BR,

Joerg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20150211/82f69b0a/attachment.html>


More information about the Qbs mailing list