#3 Couldn't compile SerialComms.cpp

v1.0 (example)
open
nobody
None
5
2014-07-02
2014-06-28
JAZ
No

Errors with lines:
439 close(m_hCommHandle); // close device (port?)
676 uBytesWritten = write(m_hCommHandle, &value, 1);
947 m_vRecvBytes = read(m_hCommHandle, m_RecvBuffer, 1);

can't find close() write() and read() functions

Related

Bugs: #3

Discussion

  • Andrey Tzar

    Andrey Tzar - 2014-06-30

    Hello.

    Try to include unistd.h at the head of the file.

    Good luck!

    On Sun, Jun 29, 2014 at 1:05 AM, JAZ skirhir@users.sf.net wrote:


    Status: open
    Group: v1.0 (example)
    Created: Sat Jun 28, 2014 09:05 PM UTC by JAZ
    Last Updated: Sat Jun 28, 2014 09:05 PM UTC
    Owner: nobody

    Errors with lines:
    439 close(m_hCommHandle); // close device (port?)
    676 uBytesWritten = write(m_hCommHandle, &value, 1);
    947 m_vRecvBytes = read(m_hCommHandle, m_RecvBuffer, 1);

    can't find close() write() and read() functions

    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/linapple/bugs/3/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/

    --
    beotiger from Tzaritzyn

     

    Related

    Bugs: #3

    Attachments
  • gantgrid

    gantgrid - 2014-07-02

    I threw in some c headers

    included time.h and stdio.h

    Then I changed usleep to nanosleep.

    while(!g_bTimerToggle)
    {
    //usleep(1); // do nothing is something doing also? 0_0 --bb
    struct timespec tim, tim2;
    tim.tv_sec = 1;
    tim.tv_nsec = 500;
    nanosleep(&tim , &tim2);
    }

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks