Menu

#2 Does not build on Mac OS X 10.8.2 Intel

open
nobody
None
5
2018-07-08
2012-11-10
No

./configure succeeds, but build fails with the following error:

In file included from WOscTcpHandler.cpp:8:
./WOscTcpHandler.h:105:37: error: cannot initialize return object of type 'int'
with an lvalue of type 'const pthread_t' (aka '_opaque_pthread_t *const')
int GetRxThreadID() const { return m_receptionThreadID; }
^~~~~~~~~~~~~~~~~~~
1 error generated.

Discussion

  • Angelo Fraietta

    Angelo Fraietta - 2018-07-06

    I get two other errors
    ./WOscTcpHandler.h:105:37: error: cannot initialize return object of type 'int'
    with an lvalue of type 'const pthread_t' (aka '_opaque_pthread_t const')
    int GetRxThreadID() const { return m_receptionThreadID; }
    ^~~~~~~~~~~~~~~~~~~
    WOscTcpHandler.cpp:169:27: error: ordered comparison between pointer and zero
    ('pthread_t' (aka '_opaque_pthread_t
    ') and 'int')
    if ( m_receptionThreadID > 0 )

    also a warning
    WOscTimeTag.cpp:290:12: warning: use of unary operator that may be intended as
    compound assignment (+=)
    m_timeTag =+ rhs.m_timeTag;

     
  • Angelo Fraietta

    Angelo Fraietta - 2018-07-08
    I have made a fix for this. It now builds without errors or warnings
    

    https://github.com/angelofraietta/WOscLib.git

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.