You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: