Skip to content
This repository has been archived by the owner on Oct 3, 2018. It is now read-only.

Update Patcher.cpp #1

Closed
wants to merge 1 commit into from
Closed

Update Patcher.cpp #1

wants to merge 1 commit into from

Conversation

xdub
Copy link

@xdub xdub commented Jan 27, 2017

Solution error in ubuntu 16.04:
g++ -Wall -ansi esrpatch.cpp Patcher.cpp -o esrpatch
Patcher.cpp: In member function ‘int CPatcher::doPatch(char*)’:
Patcher.cpp:52:45: error: ‘strncmp’ was not declared in this scope
if(!strncmp((char *)(buffer + 1), "NSR", 3)) {
^
Patcher.cpp:67:46: error: ‘strncmp’ was not declared in this scope
if(!strncmp((char )(buffer + 25), "+NSR", 4)) {
^
Patcher.cpp: In member function ‘int CPatcher::doUnPatch(char
)’:
Patcher.cpp:167:45: error: ‘strncmp’ was not declared in this scope
if(!strncmp((char *)(buffer + 1), "NSR", 3)) {
^
Patcher.cpp:182:45: error: ‘strncmp’ was not declared in this scope
if(strncmp((char *)(buffer + 25), "+NSR", 4)) {
^
Patcher.cpp:202:28: error: ‘memset’ was not declared in this scope
memset(buffer, 0, LBA_SIZE);

@antipatico
Copy link
Owner

There is no need for this merge, it is a problem with C++11 not with ubuntu.
You can find a C++11 compiling code in the C++11 branch of this repository.
The main branch is to mirror the original code.
You can switch to the C++11 branch using 'git checkout C++11', then issuing a 'make' should work on your system.

@antipatico antipatico closed this Jan 27, 2017
ali-raheem pushed a commit to ali-raheem/esrtool-legacy that referenced this pull request May 11, 2017
Runs in WSL Linux Ali-PC 4.4.0-43-Microsoft antipatico#1-Microsoft Wed Dec 31 14:42:53 PST 2014 x86_64 x86_64 x86_64 GNU/Linux
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants