error: LNK1120: 1 unresolved externals
-
Hi. I'm trying to follow that simple example:
http://amin-ahmadi.com/2015/11/14/how-to-use-system-wide-hotkeys-in-your-qt-application/
Everything good except line with RegisterHotKey function. It gives some error which i can not even comprehend...Can anybody help please?
-
@Engelard
what compiler ?
just tried with mingw and it just worked.sorry missed the link before :)
update:
tried with visual studio also and it works.So try to completely delete you build and try again - it should work.
test project
https://www.dropbox.com/s/dgz9flueqhu4dkc/winHotkey.zip?dl=0 -
Hi
Its a windows API call so you need to link its DLLtry with
LIBS += -lUser32
in your pro file and rebuild all. -
@Engelard
what compiler ?
just tried with mingw and it just worked.sorry missed the link before :)
update:
tried with visual studio also and it works.So try to completely delete you build and try again - it should work.
test project
https://www.dropbox.com/s/dgz9flueqhu4dkc/winHotkey.zip?dl=0 -
-
@Engelard said in error: LNK1120: 1 unresolved externals:
Such bugs of this framework makes me sad. I for the whole day was thinking what's wrong with me...
Its not a bug in a technical sense.
But it would be nice if qmake would recreate ALL of the make file when you change the .pro file or at least ask.