GiacomoLaw / Keylogger

A simple keylogger for Windows, Linux and Mac
https://simple-keylogger.github.io/
MIT License
2.09k stars 616 forks source link

klog_main.cpp:1:10: fatal error: Windows.h: #46

Closed dufywihi closed 6 years ago

dufywihi commented 6 years ago

@GiacomoLaw Having trouble compiling. Any ideas? What's Windows.h?

$ lsb_release -a

No LSB modules are available.
Distributor ID: Kali
Description:    Kali GNU/Linux Rolling
Release:    kali-rolling
Codename:   kali-rolling

$ g++ klog_main.cpp 

klog_main.cpp:1:10: fatal error: Windows.h: No such file or directory
 #include <Windows.h>
      ^~~~~~~~~~~
compilation terminated.

$ make klog_main

g++     klog_main.cpp   -o klog_main
klog_main.cpp:1:10: fatal error: Windows.h: No such file or directory
 #include <Windows.h>
      ^~~~~~~~~~~
compilation terminated.
<builtin>: recipe for target 'klog_main' failed
make: *** [klog_main] Error 1
GiacomoLaw commented 6 years ago

You are using the Windows version, but you are on Linux.

Use the Linux version instead: https://github.com/GiacomoLaw/Keylogger/tree/master/linux

Thanks for using!

Julian-of-Aland commented 3 years ago

I'm having the same problem but I'm on windows