Cross Compiler Causes memory functions to break.
Posted: Sun Dec 03, 2023 10:04 pm
My OS: https://github.com/maxtyson123/max-os/
When I am trying to override the new() functions etc I am getting an error saying the size parameter should be a 64 bit number even though the custom compiler targets 32bit:
I am wondering why this happens as when I try to compile it with my dist's gcc it works fine (after passing in the relevant 32bit parms)
When I am trying to override the new() functions etc I am getting an error saying the size parameter should be a 64 bit number even though the custom compiler targets 32bit:
Code: Select all
in file included from kernel/src/memory/memorymanagement.cpp:5:
kernel/include/memory/memorymanagement.h:78:7: error: 'operator new' takes type 'size_t' ('long unsigned int') as first parameter [-fpermissive]
78 | void* operator new(unsigned size);