Thread View: gnu.g++.help
2 messages
2 total messages
Started by Frederic Cirera
Tue, 06 Oct 1992 00:07
Problem with gcc(++) 2.2.2
Author: Frederic Cirera
Date: Tue, 06 Oct 1992 00:07
Date: Tue, 06 Oct 1992 00:07
46 lines
1482 bytes
1482 bytes
Hy network friends.
gcc-2.2.2 dosen't work when I compile this code.
// This may look like C code, but it is really -*- C++ -*-
#ifndef _MESSAGE_H_
#define _MESSAGE_H_
#include "window.h"
#include "event.h"
enum MsgType{ normal = 0, error, work, help};
class Message : public Window {
public:
Message( char *, MsgType = normal, char * = 0);
Message( int, int, MsgType = normal, char * = 0);
~Message() { ; }
ProcessCode Process( Event *);
};
#endif /* _MESSAGE_H_ */
Produce this error.
mess.h: In method `Message::~Message ()':
In file included from dbtools.C:19:
mess.h:16: too few arguments for method `operator delete'
All ideas are welcome on my e-mail box. Thanks.
Fred.
--
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
| Frederic CIRERA | E-mail : fred@gna.axis-design.fr |
| Av de la republique | Home : 42 05 17 66 |
| 91374 Verrieres le buisson | Office : 69 20 45 05 |
Re: Problem with gcc(++) 2.2.2
Author: Gil Nardo
Date: Wed, 07 Oct 1992 03:22
Date: Wed, 07 Oct 1992 03:22
18 lines
914 bytes
914 bytes
fred@gna.axis-design.fr (Frederic Cirera) writes:
[c++ source code deleted]
>
> mess.h: In method `Message::~Message ()':
> In file included from dbtools.C:19:
> mess.h:16: too few arguments for method `operator delete'
>
Try defining your delete function with a void, i.e.,
~Message(void) {};
This may appease your compiler beast - 8Q.
--
Gil Nardo | mcs@wet.com
Migrant Computing Services | (415)664-1032
1032 Irving Street, #435 |-----------------
San Francisco, 94122 | Supernova = *!
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