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

Does not compile #1

Open
tpanza opened this issue Jul 28, 2016 · 0 comments
Open

Does not compile #1

tpanza opened this issue Jul 28, 2016 · 0 comments

Comments

@tpanza
Copy link

tpanza commented Jul 28, 2016

System platform: Ubuntu 16.04.1, 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

First, had to edit Makefile to include -std=gnu++11

That fixed some complaints, but not all.

g++ *.cpp -std=gnu++11 -o blockchain21.out
FileInterface.cpp:431:2: error: ‘MemoryMap’ does not name a type
  MemoryMap   *mMemoryMap;
  ^
FileInterface.cpp: In constructor ‘_FILE_INTERFACE::_FILE_INTERFACE(const char*, const char*, void*, uint64_t, bool)’:
FileInterface.cpp:91:3: error: ‘mMemoryMap’ was not declared in this scope
   mMemoryMap = nullptr;
   ^
FileInterface.cpp:94:48: error: ‘createMemoryMap’ was not declared in this scope
    mMemoryMap = createMemoryMap(fname, 0, false);
                                                ^
FileInterface.cpp:111:36: error: ‘_stricmp’ was not declared in this scope
   if ( spec && _stricmp(spec,"wmem") == 0 )
                                    ^
FileInterface.cpp: In destructor ‘_FILE_INTERFACE::~_FILE_INTERFACE()’:
FileInterface.cpp:147:7: error: ‘mMemoryMap’ was not declared in this scope
   if (mMemoryMap)
       ^
FileInterface.cpp: In member function ‘bool _FILE_INTERFACE::usesMemoryMappedFile() const’:
FileInterface.cpp:167:10: error: ‘mMemoryMap’ was not declared in this scope
   return mMemoryMap ? true : false;
          ^
FileInterface.cpp: In member function ‘uint64_t _FILE_INTERFACE::seek(uint64_t, int)’:
FileInterface.cpp:314:33: error: ‘_fseeki64’ was not declared in this scope
    ret = _fseeki64(mFph,loc,mode);
                                 ^
FileInterface.cpp: In member function ‘uint64_t _FILE_INTERFACE::tell()’:
FileInterface.cpp:343:24: error: ‘_ftelli64’ was not declared in this scope
    ret = _ftelli64(mFph);
                        ^
FileInterface.cpp: In function ‘uint64_t fi_fprintf(FILE_INTERFACE*, const char*, ...)’:
FileInterface.cpp:499:47: error: ‘_vsnprintf’ was not declared in this scope
  _vsnprintf(buffer,2047, fmt, (char *)(&fmt+1));
                                               ^
PublicKeyDatabase.cpp: In member function ‘time_t PUBLIC_KEY_DATABASE::PublicKeyDatabaseImpl::getMonthDayYear(uint32_t, uint32_t, uint32_t)’:
PublicKeyDatabase.cpp:1907:29: error: ‘_mkgmtime’ was not declared in this scope
    return _mkgmtime(timeinfo);
                             ^
main.cpp: In function ‘int main(int, const char**)’:
main.cpp:165:17: error: ‘kbhit’ was not declared in this scope
       if (kbhit())
                 ^
main.cpp:167:22: error: ‘getch’ was not declared in this scope
        int c = getch();
                      ^
Makefile:2: recipe for target 'blockchain21.out' failed
make: *** [blockchain21.out] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant