vinipsmaker / tufao

An asynchronous web framework for C++ built on top of Qt
http://vinipsmaker.github.io/tufao/
GNU Lesser General Public License v2.1
589 stars 179 forks source link

apps hang when linked to wrong library configuration on VS #78

Closed hmoffatt closed 8 years ago

hmoffatt commented 8 years ago

Following on from Issue #77 , I compiled up both debug and release flavours:

cmake --build . --target install --config debug cmake --build . --target install --config release

If I run the qmake/hello-world example in debug mode, but it's linked to the tufao1.dll (release mode), courtesy of the LIBS line in tufao1.prf, it behaves weirdly: it runs without errors, it accepts connections on the nominated port, but never serves anything, and the lambda is never executed.

If I link to the debug DLL it's fine. Something like this in the .pro file does the trick (instead of what's in the prf): win32 { CONFIG(debug, debug|release): LIBS += -ltufao1d CONFIG(release, debug|release): LIBS += -ltufao1 }