BitsOfBytes
BitsOfBytes copied to clipboard
Testing doesn't work on Windows
You get the following error:
error: cannot find -lWidgetsLib
error: ld returned 1 exit status
because the .pro files are for Unix. I suggest you change the LIBS+= lines with this
CONFIG( debug, debug|release ) {
LIBSUFFIX = d
win32:LIBS += -L../WidgetsLib/debug -lWidgetsLib
win32:PRE_TARGETDEPS += ../WidgetsLib/debug/libWidgetsLib.a
} else {
LIBSUFFIX =
win32:LIBS += -L../WidgetsLib/release
win32:PRE_TARGETDEPS += ../WidgetsLib/release/libWidgetsLib.a
}
unix:LIBS += -L ../WidgetsLib
unix:PRE_TARGETDEPS += ../WidgetsLib/WidgetsLib$${LIBSUFFIX}.a
Thanks @BertrandDecoster . Right now I don't have access to a Windows machine, but I'll update the project as soon as I can test things.