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

Entry.cpp:52:16: error: ‘printf’ was not declared in this scope #952

Closed
kl1059 opened this issue Feb 26, 2019 · 3 comments
Closed

Entry.cpp:52:16: error: ‘printf’ was not declared in this scope #952

kl1059 opened this issue Feb 26, 2019 · 3 comments
Labels

Comments

@kl1059
Copy link

kl1059 commented Feb 26, 2019

xmrig-2.13.1/src/base/kernel/Entry.cpp: In function ‘int showVersion()’:
xmrig-2.13.1/src/base/kernel/Entry.cpp:52:16: error: ‘printf’ was not declared in this scope
" with GCC");
^
xmrig-2.13.1/src/base/kernel/Entry.cpp: In static member function ‘static int xmrig::Entry::exec(const xmrig::Process&, xmrig::Entry::Id)’:
xmrig-2.13.1/src/base/kernel/Entry.cpp:109:21: error: ‘printf’ was not declared in this scope
printf(usage);

(this fixed it in my case)

$ diff -C 2 Entry.cpp.1 Entry.cpp
*** Entry.cpp.1 2019-02-25 08:23:59.000000000 -0600
--- Entry.cpp 2019-02-26 12:40:47.798949824 -0600


*** 42,45 ****
--- 42,46 ----
#include "version.h"

  • #include <stdio.h>

    static int showVersion()

fedora 24 gcc version 6.3.1 20161221 (Red Hat 6.3.1-1) (GCC)

@xmrig xmrig added the bug label Feb 27, 2019
@marcel1974
Copy link

I had to add #include to src/base/kernel/Entry.cpp
I still need Ubuntu 15.10 support. It was building fine up to xmrig-2.8.3

xmrig added a commit that referenced this issue Mar 1, 2019
@xmrig
Copy link
Owner

xmrig commented Mar 1, 2019

Fixed in dev branch.
Thank you.

@xmrig xmrig added this to the v2.14 milestone Mar 6, 2019
@xmrig
Copy link
Owner

xmrig commented Mar 6, 2019

@xmrig xmrig closed this as completed Mar 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants