Allocating memory
Posted: Thu May 21, 2020 2:16 am
I'm trying to use malloc function but I can't link the program. The errors are:
Error at file 'malloc.asm' line 16: symbol '_heap' not defined
Errors in source file D:\Documents\blueMSXv282full\Tools\z88dk\lib\config\..\..\\lib\target\msx\classic\msx_crt0.asm:
Error at file 'malloc.asm' line 16: symbol '_heap' not defined
z88dk manual says I have to link with balloc.lib or malloc.lib but these libraries don't exist. I could see that Z88DK_DIR/libsrc contains libraries to make and I'm surprised because I have installed z88dk from precompiled .zip, and I expected all libraries built yet.
- What have I do?
- Must I compile these libraries with z88dk?
If the answer is yes, what is the make tool I have to use?
Error at file 'malloc.asm' line 16: symbol '_heap' not defined
Errors in source file D:\Documents\blueMSXv282full\Tools\z88dk\lib\config\..\..\\lib\target\msx\classic\msx_crt0.asm:
Error at file 'malloc.asm' line 16: symbol '_heap' not defined
z88dk manual says I have to link with balloc.lib or malloc.lib but these libraries don't exist. I could see that Z88DK_DIR/libsrc contains libraries to make and I'm surprised because I have installed z88dk from precompiled .zip, and I expected all libraries built yet.
- What have I do?
- Must I compile these libraries with z88dk?
If the answer is yes, what is the make tool I have to use?