www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/07/11/13:12:32

Date: Tue, 11 Jul 2000 19:12:19 +0200 (MET DST)
From: Gisle Vanem <giva AT bgnett DOT no>
To: djgpp AT delorie DOT com
Subject: C++ error
Message-ID: <Pine.UW2.3.95.1000711191111.21689A-100000@bryggen.bgnett.no>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

I'm trying to build "Turbo Vision Development Toolkit" by Blaise
using latest (?) Turbo Vision 1.0.10 and gcc 2.95.2.
 
All is well except one file. The problem is in this class definition:
 
class sLabel : public TLabel
{
public:
    TView *getLink()            { return (link); }
    void setLink (TView *aLink) { link = aLink; }
}; // <- line 103
 
gcc gives this error:
 
  bshoehor.cpp:103: base `TLabel' with only non-default constructor
  bshoehor.cpp:103: in class without a constructor

AFAICS, the 'sLabel' class is only present to allow access to protected
data members in the 'TLabel' class. How can this be accomplished in
another way?
Since I'm not an C++ expert I hope some TurboVision/C++ guru could
help. Are you there SET?

Gisle V.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019