Linking MSVCRT with Qt5.3
-
Hello guys, I am trying to statically link library
libmsvcrt.a
in order to link the required_get_current_locale
, which is an external library dependency.I've tried
-lmsvcrt
which does not seem to be working. Any idea how to link the needed function? I'm using Qt 5.3. with MinGW. -
@Peppy said:
I've tried
-lmsvcrt
which does not seem to be working.i think i will never understand why so many people are expecting help in a forum but not saying what's actually not working... :)
Whats the error, etc.?
From where have you taken libmsvcrt.a? -
@Peppy said:
The
libmsvcrt.a
is shipped with MinGW that is shipped with Qt 5.3AFAIK this is not a static lib?!
-
@Peppy
only if the method's body is also in the header file of course.
Otherwise it is missing and you get the error you already experienced.