[Qt-interest] Linking C programs with qmake
Nikos Chantziaras
realnc at arcor.de
Mon Dec 13 14:13:44 CET 2010
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++.
More information about the Qt-interest-old
mailing list