delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/08/15:06:44

Message-Id: <3.0.16.19980308210022.08874650@hem1.passagen.se>
Date: Sun, 08 Mar 1998 21:00:29 -0500
To: Thomas Demmer <demmer AT LSTM DOT Ruhr-UNI-Bochum DOT De>
From: Peter Palotas <blizzar AT hem1 DOT passagen DOT se>
Subject: Re: MSS 10B
Cc: djgpp AT delorie DOT com
Mime-Version: 1.0

At 19.59 1998-03-08 +0100, you wrote:

Hi Tom,

>Peter, 
>bad news, your program does not work together with
>TurboVision. Programs using TV fail to compile,
>I get a syntax error where TV overloads the new[]
>operator

I guess I forgot to mention this problem in the documentation.
For the new[] operator overload I have no concrete solution yet, because
MSS needs to overload the new operator itself, and there will be a
conflict. I will try to find a solution as soon as possible though. I don't
think there will ever be a really GOOD solution for this though.


, and when a member function is called 
>"free". Any ideas how to cure that?

Well, this is because MSS #defines a macro `free´ to get the
functionname/filename/linenumber information about the call to free, since
it's not possible to overload that function in any way. If you are not
using (or Turbo Vision is not using) the C library free() function, try
commenting out the #define free... line in `mss.h´ or put an #undef free
right after the #include <mss.h> line in all your source files.

To this problem I don't see any good solution that will work in all cases,
but if you have any ideas, please don't hesitate to mention them. I will
mention this problem in the docs too.


>Without -DMSS it compiles, even writes a log
>file, but otherwise it does not work.

It writes a logfile without -DMSS only if you are using C++ and linking
with the library, but this is not a good idea however. If you are not
planning on using MSS with a C++ program you should both skip -DMSS and the
linkage with the MSS library, i.e. remove -lmss forom the gcc commandline.



-- Peter Palotas alias Blizzar -- blizzar AT hem1 DOT passagen DOT se --

******************************************************
* A brief description of DJGPP:                      *
* NEVER BEFORE HAVE SO FEW DONE SO MUCH FOR SO MANY! *
******************************************************

- Raw text -


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