How can i include stdlib.h

Discussion in 'General Discussion' started by y.seksit, May 13, 2014.

  1. y.seksit

    y.seksit New Member

    Joined:
    May 8, 2014
    Messages:
    17
    Likes Received:
    0
    i required to use dtostrf() in stdlib.h, but i don't know where file save in debian, please suggest

    Thanks.
     
  2. mkopack

    mkopack Member

    Joined:
    Jun 14, 2013
    Messages:
    451
    Likes Received:
    21
    I assume you're coding in C?

    You need to make sure you have the dev packages installed (I would be shocked if glibc-dev isn't installed already though...) and then in your code you just do

    #include <stdlib.h>

    It should find it automatically then...
     
  3. y.seksit

    y.seksit New Member

    Joined:
    May 8, 2014
    Messages:
    17
    Likes Received:
    0
    Thank mkopack, I doding in C on Arduino so i assume it already provide stdlib.h in lib folder, but i don't know where. can you suggest for this.
     
  4. mkopack

    mkopack Member

    Joined:
    Jun 14, 2013
    Messages:
    451
    Likes Received:
    21
    I don't understand... Are you making an arduino sketch? If so you don't need that...
     
  5. lukas

    lukas New Member

    Joined:
    Aug 1, 2014
    Messages:
    4
    Likes Received:
    0
    I had the same problem

    try
    Code:
     #include <avr/dtostrf.h>
    that works, but only for including the library. The next problem is, as soon as you reach the function, the Arduino crashes.

    Any hints for that maybe from the developer?
     

Share This Page