0

Hello.

My simple sample source code shows build error.

KPIT GNURL78-ELP Toolchain v4.9.2.201701.

int main(void)
{
char *p = new char[8];
while (1) {}
return 0;
}
Above code makes the following (linker) errors.
undefined reference to `_bsssize’
undefined reference to `_bssstart’
undefined reference to `_datastart’
undefined reference to `_fini_array_end’
undefined reference to `_fini_array_start’
undefined reference to `_init_array_end’
undefined reference to `_init_array_start’
undefined reference to `_preinit_array_end’
undefined reference to `_preinit_array_start’
undefined reference to `_romdatastart’
undefined reference to `_romsaddrcopysize’
undefined reference to `_romsaddrstart’
undefined reference to `_saddrstart’
undefined reference to `_stack’

Are something special settings required for uising “new” operator?

nishi-tk コメント済
    • Hello.

      A “new” issue was solved.

      The issue project was built completely by changing following settings.
      “Tool Settings / Library Generator”
      Type : Project-Built –> PreBuilt
      Selent : Newlib –> Optimized

      Thank you.
      nishi-tk