Skip to content

cant compile Json_Example  #119

@Wifiunterputzdose

Description

@Wifiunterputzdose

I tried to compile the Json_Example Sketch but get some compile errors.
First the avr/pgmspace.h couldnt find, so I delete the avr/. Until that I get these errors

`C:\xxx\AppData\Local\Temp\arduino_modified_sketch_748973\Json_Example.ino: In function 'uint16_t freeMem(uint16_t*)':

Json_Example:239: error: '__malloc_heap_start' was not declared in this scope

 brkval = __malloc_heap_start;

          ^

Json_Example:241: error: '__malloc_heap_end' was not declared in this scope

cp = __malloc_heap_end;

    ^

Json_Example:243: error: 'AVR_STACK_POINTER_REG' was not declared in this scope

 cp = ((char *)AVR_STACK_POINTER_REG) - __malloc_margin;

               ^

Json_Example:243: error: '__malloc_margin' was not declared in this scope

 cp = ((char *)AVR_STACK_POINTER_REG) - __malloc_margin;

                                        ^

exit status 1
'__malloc_heap_start' was not declared in this scope

`
I'm using Arduino Version 1.8.5, ESP8266 Version 2.4.0-rc2

Can someone help me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions