Skip to content

cpp support #3751

@robert-b

Description

@robert-b

There is some basic c++ support.
As an example I simply allocate an existing cpp object:
`
#include <scheduler/schedulerTask.h>

// a simple allocation of an object
task_c my_task;

// fails to allocate
task_c my_task_array[2];
With the following error: Linking REVO Memory region Used Size Region Size %age Used FLASH: 236124 B 896 KB 25.74% FLASH_CONFIG: 0 GB 128 KB 0.00% RAM: 41388 B 128 KB 31.58% CCM: 7808 B 64 KB 11.91% BACKUP_SRAM: 0 GB 4 KB 0.00% MEMORY_B1: 0 GB 0 GB -1.#JC:\cygwin64\tmp\ccBF65ET.ltrans0.ltrans.o:(.rodata+0x350): undefined reference tovtable for __cxxabiv1::__class_type_info'
C:\cygwin64\tmp\ccBF65ET.ltrans0.ltrans.o:(.rodata+0x360): undefined reference to `vtable for __cxxabiv1::__vmi_class_type_info'

Is there more planned or in the pipeline?
A correct thing would be to use g++ instead of gcc to prevent library issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions