🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by "Denis R. Martin" Wed, 08 Mar 1989 21:17
An undefined type is accepted
#1717
Author: "Denis R. Martin"
Date: Wed, 08 Mar 1989 21:17
32 lines
981 bytes
Hi,

Here is a C++ program I think should not compile. The only message
I get is "undefined symbols: _main". I'm running g++ V1.32 on a
Sun3 under OS3.5. The command I used is "g++ foo.cc".

//   -*- C++ -*- 

class Graph 
{
protected:
  UndefinedType vertices;   // ???
public:
  Graph();
  ~Graph();
};

main()
{
  Graph a;
  cout << "This should not compile...\n";
}

-------------------------------------------------------------------------------


For now, I'll make sure all my types are defined...

Denis Martin
Ecole Polytechnique, Montreal, Qc.
denis%vlsi.poly%crim.ca
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads