My Qt project links with the library python27.lib on Windows 8.1. The .pro file contains the following line:
win32:LIBS += C:\Python27_11\libs\python27.lib
When building the project in Release mode, it links correctly with python27.lib.
When building the project in Debug mode, it looks for python27_d.lib:
Error: LNK1104: cannot open file 'python27_d.lib'
How to enforce linking with python27.lib in the Debug mode?
Thank you in advance!
Roni.
P.S. I tried to use different syntax win32:LIBS += -LC:/Python27_11/libs -lpython27
, and to enclose the declaration into CONFIG(debug, debug|release) {}
. None of these worked.
The system info: Qt Creator 3.5.1 (opensource) Based on Qt 5.5.1 (MSVC 2013, 32 bit) The OS is Windows 8.1 Pro 64 bit