Giter Site home page Giter Site logo

embedded-c's People

Contributors

niekiran avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

embedded-c's Issues

Unknown type name 'caddr_t' in Src/sysmem.c file

With toolchain GNU Tools for STM32 (11.3.rel1)
Building Imported target projects from the repo is throwing an error

../Src/sysmem.c:64:1: error: unknown type name 'caddr_t'
   64 | caddr_t _sbrk(int incr)
      | ^~~~~~~
../Src/sysmem.c: In function '_sbrk':
../Src/sysmem.c:77:25: error: 'caddr_t' undeclared (first use in this function)
   77 |                 return (caddr_t) -1;
      |                         ^~~~~~~
../Src/sysmem.c:77:25: note: each undeclared identifier is reported only once for each function it appears in
../Src/sysmem.c:82:25: error: expected ';' before 'prev_heap_end'
   82 |         return (caddr_t) prev_heap_end;
      |                         ^~~~~~~~~~~~~~
      |                         ;
../Src/sysmem.c:68:15: warning: variable 'prev_heap_end' set but not used [-Wunused-but-set-variable]
   68 |         char *prev_heap_end;
      |               ^~~~~~~~~~~~~
../Src/sysmem.c:83:1: warning: control reaches end of non-void function [-Wreturn-type]
   83 | }
      | ^
make: *** [Src/subdir.mk:25: Src/sysmem.o] Error 1
"make -j20 all" terminated with exit code 2. Build might be incomplete.

00:59:17 Build Failed. 4 errors, 2 warnings. (took 323ms)

Adding new line in sysmem.c file i.e., #include <sys/types.h> removes the error

Reference: https://community.st.com/t5/stm32cubeide-mcu/core-src-sysmem-c-38-1-error-unknown-type-name-caddr-t/td-p/56309

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.