Menu

#8 Compliation under linux or G++ Solved!

open
nobody
None
5
2005-02-26
2005-02-26
iandbige
No

*****************************************************
*****************************************************
(G++) GNU PEOPLE
*****************************************************
*****************************************************
SEE THE PATCHES SECTION!
Attached to one of the messages there
is a ANSI compliant version. That compiles
without errors.
*****************************************************
*****************************************************

Discussion

  • iandbige

    iandbige - 2005-02-26
     
  • iandbige

    iandbige - 2005-02-26

    Logged In: YES
    user_id=1226241

    thanks to Jan Ciger at VRLab

    See attached file: sigslot.h
    This version compiles OK on g++ (GCC) 3.4.2 20041017 Fedora
    Core 3 Linux

     
  • Wayne Prasek

    Wayne Prasek - 2008-09-21

    Works perfect. Thanks!

     
  • Glenn

    Glenn - 2009-03-01

    Although this code compiles, I believe there is a bug.

    For all the _connectionN() (for N=0...8) the default constructor is written as follows. This does not make sense and I have a feeling it's never flagged by the compiler because the default constructor is never used (and hence never instantiated). These classes don't even have members called pobject or pmemfun.

    Before (what I believe is incorrect)

    _connectionN()
    {
    this->pobject = NULL;
    this->pmemfun = NULL;
    }

    I believe it should be (this makes much more sense):

    _connectionN()
    {
    m_pobject = NULL;
    m_pmemfun = NULL;
    }

    which more succinctly can be expressed as :

    _connectionN() : m_pobject(NULL), m_pmemfun(NULL) {}

     

Log in to post a comment.