[Qt-interest] Linking C programs with qmake

Diego Iastrubni diegoiast at gmail.com
Mon Dec 13 14:39:22 CET 2010


qmake contains no logic to detect if your project is only C, so yes your
hack is in place

On Mon, Dec 13, 2010 at 3:13 PM, Nikos Chantziaras <realnc at arcor.de> wrote:

> I have a project that consists of only *.c files.  Right now, I specify
> this in my *.pro file:
>
>   QMAKE_LINK = $$QMAKE_LINK_C
>
> This seems to work just fine, but I have to wonder whether this is
> actually the correct way to do this. Since all files have the *.c
> extension, shouldn't qmake figure out on its own that it should link
> them with QMAKE_LINK_C instead of QMAKE_LINK?  The former links using
> gcc here, and the latter with g++, which results in linking against
> libstdc++.
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101213/9ccdf289/attachment.html 


More information about the Qt-interest-old mailing list