How to use CreateFont API function in Qt5
-
@kshegunov Not a typo ;) See here
-
Haaaaaaa that typo ! Good catch ! Then indeed, there was ! :)
-
@kshegunov There was a next line. I have removed it for test time. Also changes to shash/backslash do not make any difference for now. Linker is not happy.
-
@SGaist What typo? Can you be more specific, please? Compiler has no problem with that line. And it used to work in another IDE.
Also: "It would rather be LIBS += -LGdi32." No. Without full path there is a message that file is not found. -L and -l makes no difference so far.
-
@Uncle-Kris
A library is passed toqmake
(respectively make) with the following syntax:LIBS += -L/path/to/library -llibraryname
The typo was that @SGaist used the switch for library path
-L
to specify the library name. It should've been-lgdi32
. So in your case it'd look something like this:LIBS += -L"H:/Windows Kits/8.1/Lib/winv6.3/um/x86" -lgdi32
-
Yes the typo was the L vs l but still the library name is
Gdi32
-
@kshegunov said:
@SGaist said:
but still the library name is Gdi32
The windows linker isn't case sensitive. :)
Indeed, but I wouldn't be surprised if that changed at some point :D
-
@SGaist said:
Indeed, but I wouldn't be surprised if that changed at some point :D
Perhaps, perhaps. Although, judging from the time it took MS to introduce the x64 compiler, if it were to change, it'd take decades. And since it hasn't changed for over 30 years, I really doubt that it ever will. :D