Project not compilable on other computer
Hello dear ST Community
I have my first real problem, unfortunately.
Since we now want to work with multiple people on projects, we have now set up our git cleanly by only sharing the project files (no workspace). However, now I unfortunately have the problem that on my computer the project is not compilable. I get the following error messages:
expected ';' before 'prev_heap_end' sysmem.c
make: *** [Src/subdir.mk:52: Src/sysmem.o] Error 1
make: *** Waiting for unfinished jobs....
unknown type name 'caddr_t' sysmem.c
i have already tried:
- as recommended in another post here, add the line #include <sys/types.h> to the sysmem.c file.
- change the code in sysmem.c from
// static char *heap_end;
// char *prev_heap_end;
//
// if (heap_end == 0)
// heap_end = &end;
//
// prev_heap_end = heap_end;
// if (heap_end + incr > stack_ptr)
// {
// errno = ENOMEM;
// return (caddr_t) -1;
// }
//
// heap_end += incr;
//
// return (caddr_t) prev_heap_end;
I understand that caddr_t seems to be an outdated system. Unfortunately, I don't fully understand how to replace the old version with the code from a newly generated sysmem.c file.
I hope you know a solution to my problem.
Many greetings and thanks in advance
Patrick