Article View: comp.os.os2.programmer
Article #3423emx 0.8f
From: bernd esser
Date: Sun, 10 Jan 1993 17:18
Date: Sun, 10 Jan 1993 17:18
43 lines
2750 bytes
2750 bytes
Hello everybody,
yesterday i spent a few hours and downloaded the 0.8f version of emx from
hobbes. I installed it and recompiled my 0.8e programs. I encountered some
problems while doing so:
- first of all: by mistake i deleted my Emacs executable. So i had to
dump a new version. This is not possible with the DLLs coming with
0.8f. I got an error in loadup.el (something like end of file...).
I reinstalled the DLLs from 0.8e and everything worked fine. Could this
be an error in one of the new DLLs?
- Just at the first c++ file i tried to recompile i got a bunch of errors
from emx/include/strings.h and emx/include/memory.h because my file included
std.h. In strings.h and memory.h there a several prototypes defined like :
void *memccpy(void *s1, const void *s2, int c, size_t n)
I had to change all occurences of s1 and s2 in these files to sa and sb
to get them compiled. I am somewhat confused about that!
- In another c++ file i define a class with a protected member short *arr.
The constructor allocates memory : arr = new short[size];
The destructor frees this memory : delete [] arr;
With emx 0.8e (gcc 2.2.2) this worked. With the new version the program
writes a core-dump-file when executing the destructor. I had to change
the destructor to : delete arr;
Perhaps i am wrong, but i thought when i allocate memory with
"new type[size]" i have to deallocate it with "delete []".
- After these changes my programs compiled without further error messages
(i compiled with -Wall). But a lot of them lead to various SYSxxxx messages
when i try to start them.
My programs are all c++, i do not use Zomf or Zmt. My configuration is:
486/50 ISA board
16 MBytes ram
120 MBytes IDE drive
ATI ULTRA PRO
OS/2 2.0, SP installed and with 8514A video-mode
background programs running: PSPM2 and MEMSTAT
Can somebody, who uses 0.8f and c++, tell me wether these problems are related
with 0.8f and gcc 2.3.3?
Thanks a lot!
*-----------------------------------------------*
| Bernd Esser, Phys. Inst. d. Uni Bonn, Germany |
| ESSER@PIB1.PHYSIK.UNI-BONN.DE |
*-----------------------------------------------*
Technical Details
Message-ID:
<1993Jan10.171853.5807@news.rhrz.uni-bonn.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!Sirius.dfn.de!olymp!news-rhrz!pib1.physik.uni-bonn.de!ESSERShow Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!Sirius.dfn.de!olymp!news-rhrz!pib1.physik.uni-bonn.de!ESSER From: esser@pib1.physik.uni-bonn.de (bernd esser) Subject: emx 0.8f Message-ID: <1993Jan10.171853.5807@news.rhrz.uni-bonn.de> Sender: news@news.rhrz.uni-bonn.de Reply-To: esser@pib1.physik.uni-bonn.de Organization: Physikalisches Institut Uni-Bonn Date: Sun, 10 Jan 93 17:18:53 GMT Lines: 43