Mail Archives: djgpp/1998/03/08/15:06:44
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 -