Reputation: 683
I'm compiling a library in qt and during compiling it I've faced with this error(on windows 7 x64 with qt designer) :
cannot open file “m.lib”
when I searched around I've found in here and here that I must pass the -lm flag to compiler, but I don't know how to pass it?!
I've left it in qmake flags but it says that it's unknown!
I'm using qt-designer with qt5.2 and msv2012 compiler.
Upvotes: 0
Views: 253
Reputation: 19122
http://doc.qt.io/qt-5/qmake-project-files.html#declaring-other-libraries
You probably need to tell it where the library is, too.
LIBS += -L/path/to/my/lib -lm
Hope that helps.
Upvotes: 1