Hi,
I've searched the forum for similar problem, but I didn't find answer. How it looks: I am trying to compile a simple dll project, where on DLL_PROCESS_ATTACH event is set such a code:
hhookKeyb = SetWindowHookEx(WH_KEYBOARD, KeyboardProc, hinstDLL, 0);
And my dll doesn't compile, because of... here is build log:
Linking dynamic library: testowe_dll.dll
Creating library file: libtestowe_dll.a
.objs\main.o:main.c:(.text+0x15b): undefined reference to `SetWindowHookEx'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
What's wrong with that?