Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to compile Script #136

Closed
waseeld opened this issue Aug 15, 2023 · 2 comments
Closed

Unable to compile Script #136

waseeld opened this issue Aug 15, 2023 · 2 comments
Labels
bug windows Issue with Windows version

Comments

@waseeld
Copy link

waseeld commented Aug 15, 2023

PS C:\Users\PC\Desktop\Keylogger-master\windows> mingw32-gcc.exe .\klog_main.cpp
.\klog_main.cpp: In function 'int Save(int)':
.\klog_main.cpp:132:57: error: 'strcpy_s' was not declared in this scope
    strcpy_s(lastwindow, sizeof(lastwindow), window_title);
                                                         ^
.\klog_main.cpp:137:23: error: 'localtime_s' was not declared in this scope
    localtime_s(&tm, &t);
                   ^

i saw #99 but it dosent help me lol

@GiacomoLaw
Copy link
Owner

Using MinGW? Localtime_s doesn't work on stuff outside Windows compilers.

Try adding this:

define localtime_r(T,Tm) (localtime_s(Tm,T) ? NULL : Tm)

Does this help?

@GiacomoLaw GiacomoLaw added bug windows Issue with Windows version labels Oct 4, 2023
@GiacomoLaw
Copy link
Owner

Duplicate of #133

@GiacomoLaw GiacomoLaw marked this as a duplicate of #133 Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug windows Issue with Windows version
Projects
None yet
Development

No branches or pull requests

2 participants