not compliing in ubuntu 24.10, any ideas how to fix? thx
make
g++ -I inc -I /usr/include/cryptopp -I sdk -std=c++0x -O0 -g -fstack-protector-all -Wall -I/usr/include/x86_64-linux-gnu -I/usr/include/p11-kit-1 -I/usr/include/fuse -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_DEBUG -c src/MegaFuseApp.cpp -o src/MegaFuseApp.o
src/MegaFuseApp.cpp: In member function ‘virtual void MegaFuseApp::transfer_update(int, m_off_t, m_off_t, dstime)’:
src/MegaFuseApp.cpp:360:53: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx1998::vector<bool, std::allocator >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
360 | } else if(endChunk > startChunk && endChunk < it->second.availableChunks.size() && it->second.availableChunks[endChunk]) {
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
g++ -I inc -I /usr/include/cryptopp -I sdk -std=c++0x -O0 -g -fstack-protector-all -Wall -I/usr/include/x86_64-linux-gnu -I/usr/include/p11-kit-1 -I/usr/include/fuse -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_DEBUG -c src/file_cache_row.cpp -o src/file_cache_row.o
In file included from src/file_cache_row.cpp:5:
inc/file_cache_row.h:18:9: error: ‘uint64_t’ does not name a type
18 | uint64_t handle;
| ^~~~~~~~
inc/file_cache_row.h:4:1: note: ‘uint64_t’ is defined in header ‘’; did you forget to ‘#include ’?
3 | #include <unordered_map>
+++ |+#include
4 | struct file_cache_row
inc/file_cache_row.h:37:40: error: ‘uint64_t’ has not been declared
37 | mapType::iterator findByHandle(uint64_t h);
| ^~~~~~~~
src/file_cache_row.cpp: In constructor ‘file_cache_row::file_cache_row()’:
src/file_cache_row.cpp:14:129: error: class ‘file_cache_row’ does not have any field named ‘handle’
14 | file_cache_row::file_cache_row(): td(-1),status(INVALID),size(0),available_bytes(0),n_clients(0),startOffset(0),modified(false),handle(0)
| ^~~~~~
src/file_cache_row.cpp: At global scope:
src/file_cache_row.cpp:91:33: error: no declaration matches ‘std::__debug::unordered_map<std::__cxx11::basic_string, file_cache_row>::iterator CacheManager::findByHandle(uint64_t)’
91 | CacheManager::mapType::iterator CacheManager::findByHandle(uint64_t h)
| ^~~~~~~~~~~~
inc/file_cache_row.h:37:27: note: candidate is: ‘std::__debug::unordered_map<std::__cxx11::basic_string, file_cache_row>::iterator CacheManager::findByHandle(int)’
37 | mapType::iterator findByHandle(uint64_t h);
| ^~~~~~~~~~~~
inc/file_cache_row.h:27:7: note: ‘class CacheManager’ defined here
27 | class CacheManager
| ^~~~~~~~~~~~
make: *** [Makefile:43: src/file_cache_row.o] Error 1
not compliing in ubuntu 24.10, any ideas how to fix? thx
make
g++ -I inc -I /usr/include/cryptopp -I sdk -std=c++0x -O0 -g -fstack-protector-all -Wall -I/usr/include/x86_64-linux-gnu -I/usr/include/p11-kit-1 -I/usr/include/fuse -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_DEBUG -c src/MegaFuseApp.cpp -o src/MegaFuseApp.o
src/MegaFuseApp.cpp: In member function ‘virtual void MegaFuseApp::transfer_update(int, m_off_t, m_off_t, dstime)’:
src/MegaFuseApp.cpp:360:53: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx1998::vector<bool, std::allocator >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
360 | } else if(endChunk > startChunk && endChunk < it->second.availableChunks.size() && it->second.availableChunks[endChunk]) {
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
g++ -I inc -I /usr/include/cryptopp -I sdk -std=c++0x -O0 -g -fstack-protector-all -Wall -I/usr/include/x86_64-linux-gnu -I/usr/include/p11-kit-1 -I/usr/include/fuse -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_DEBUG -c src/file_cache_row.cpp -o src/file_cache_row.o
In file included from src/file_cache_row.cpp:5:
inc/file_cache_row.h:18:9: error: ‘uint64_t’ does not name a type
18 | uint64_t handle;
| ^~~~~~~~
inc/file_cache_row.h:4:1: note: ‘uint64_t’ is defined in header ‘’; did you forget to ‘#include ’?
3 | #include <unordered_map>
+++ |+#include
4 | struct file_cache_row
inc/file_cache_row.h:37:40: error: ‘uint64_t’ has not been declared
37 | mapType::iterator findByHandle(uint64_t h);
| ^~~~~~~~
src/file_cache_row.cpp: In constructor ‘file_cache_row::file_cache_row()’:
src/file_cache_row.cpp:14:129: error: class ‘file_cache_row’ does not have any field named ‘handle’
14 | file_cache_row::file_cache_row(): td(-1),status(INVALID),size(0),available_bytes(0),n_clients(0),startOffset(0),modified(false),handle(0)
| ^~~~~~
src/file_cache_row.cpp: At global scope:
src/file_cache_row.cpp:91:33: error: no declaration matches ‘std::__debug::unordered_map<std::__cxx11::basic_string, file_cache_row>::iterator CacheManager::findByHandle(uint64_t)’
91 | CacheManager::mapType::iterator CacheManager::findByHandle(uint64_t h)
| ^~~~~~~~~~~~
inc/file_cache_row.h:37:27: note: candidate is: ‘std::__debug::unordered_map<std::__cxx11::basic_string, file_cache_row>::iterator CacheManager::findByHandle(int)’
37 | mapType::iterator findByHandle(uint64_t h);
| ^~~~~~~~~~~~
inc/file_cache_row.h:27:7: note: ‘class CacheManager’ defined here
27 | class CacheManager
| ^~~~~~~~~~~~
make: *** [Makefile:43: src/file_cache_row.o] Error 1