AminetAminet
Search:
84782 packages online
About
Recent
Browse
Search
Upload
Setup
Services

util/misc/MCPPReload.lha

Mirror:Random
Showing: ppc-morphos icongeneric icon
No screenshot available
Short:Workaround for MaxonC 4 startup link bug
Author: steger at pass.dnet.it (Georg Steger)
Uploader:steger pass dnet it (Georg Steger)
Type:util/misc
Version:0.5
Architecture:m68k-amigaos
Date:1999-01-15
Requires:OS 2.0 (V37)
Download:util/misc/MCPPReload.lha - View contents
Readme:util/misc/MCPPReload.readme
Downloads:755

There's a bug in MaxonCPP 4.0. If you set the linker options to no startup-
code and compile something, then all later compilings will use this setting
too, regardless of what linker options you tell the program to use. This is
extremely annoying when you make a library. To test the library you need
the startup-code option to be activated, but because of the bug and the
fact that you had to turn startup-code off when compiling the library the
library test program will crash because of the missing startup-code.

The only way to solve this trouble was to quit MaxonDevelop and restart it.
This is a very annoying thing. For example:

  1) change library source
  2) compile library
  3) quit MaxonDevelop
  4) restart MaxonDevelop
  5) change and/or compile library test program
  6) library has a bug
  7) quit MaxonDevelop
  8) restart MaxonDevelop
  9) GOTO 1)

I have found out, that it is not necessary to quit the MaxonDevelop
program, but it is enough to quit and restart the compiler (bin/mcpp4)
which is usually loaded by MaxonDevelop with NewLoadSeg() during startup.

To quit mcpp4 it is enough to send "quit" to it's ARexx port (called
"MAXONCPP").

Restarting the compiler is a little bit more complicated, as it's homedir
(PROGDIR:) needs to be "MDEV:", so one usually would have to keep two
copies of the mcpp4 files, one in "MDEV:/bin" (because MaxonDevelop loads
it from there) and one in "MDEV:" to force the homedir to be there.

To simplify everything I have written a small program which quits/restarts
the compiler automatically. Hope it works correctly. If not: source code
is included. Feel free to improve it and fix bugs ;-)


Contents of util/misc/MCPPReload.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                  640    1571  40.7% -lh5- 25eb Jan 13  1999 MCPPReload/Install
[generic]                 1515    2932  51.7% -lh5- c30e Jan 13  1999 MCPPReload/Install.info
[generic]                 5204    8696  59.8% -lh5- d588 Jan 13  1999 MCPPReload/MCPPReload
[generic]                 1229    3204  38.4% -lh5- 5f83 Jan 14  1999 MCPPReload/Readme
[generic]                 2091    2963  70.6% -lh5- 2079 Jan 14  1999 MCPPReload/Readme.info
[generic]                 1564    2471  63.3% -lh5- b3b3 Jan 13  1999 MCPPReload/Source.info
[generic]                 2051    5581  36.7% -lh5- ad58 Jan 13  1999 MCPPReload/Source/main.c
[generic]                 2166    3091  70.1% -lh5- 3867 Jan 13  1999 MCPPReload/Source/main.c.info
[generic]                  355     732  48.5% -lh5- 049d Jan 13  1999 MCPPReload/Source/MCPPReload.project
[generic]                  633    1346  47.0% -lh5- 7e50 Jan 13  1999 MCPPReload/Source/misc.c
[generic]                 2126    2995  71.0% -lh5- c97d Jan 13  1999 MCPPReload/Source/misc.c.info
[generic]                  102     161  63.4% -lh5- 33fc Jan 13  1999 MCPPReload/Source/misc.h
[generic]                 1970    2762  71.3% -lh5- 95a9 Jan 13  1999 MCPPReload/Source/misc.h.info
[generic]                 1225    6622  18.5% -lh5- 0cce Jul 24  1998 MCPPReload/Source/OSIncludes.h
[generic]                 1941    2723  71.3% -lh5- 0d3c Jan 13  1999 MCPPReload/Source/OSIncludes.h.info
[generic]                 1470    2718  54.1% -lh5- 00db Jan 14  1999 MCPPReload.info
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total        16 files   26282   50568  52.0%            Jan 14  1999
Page generated in 0.02 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>