Jump to content
Excelsior Forums


  • Content count

  • Joined

  • Last visited

Everything posted by nemo

  1. Sorry for the tardiness but can you post a short example?
  2. nemo

    XDS 2.6 beta

    I agree with Snowman here. XDS-C can even allow you to develope X-based applications but if you want Cocoa-based applications, you are asking too much for a free release.
  3. That seems to be a potential problem with the compiler. (Just to check, I compiled the code with the p2 compiler, with the substitution of STextIO for InOut, and no problem.)
  4. nemo

    incompatible types

    Further to Chris' reply, you should always examine the definition of the function in the "DEF" file. It tells you how to call it and what it returns.
  5. nemo


    And you are welcome here.
  6. nemo

    incompatible types

    You asked about: Num $:= ReadInt; First clue: What is the definition of ReadInt?
  7. > I'd say the simplest solution would be to open hola.mod back up in the editor I would suggest "touch" so that there is no possibility of accidentally changing the file.
  8. I also use Ubuntu 8.10 and have no problem. With my installation, running "xc =m hello.mod" gives me the following. O2/M2 development system v2.51 (c) 1999-2003 Excelsior, LLC. (build 10.05.2005) #project is up to date New "tmp.mkf" is generated using template "/home/johng/opt/xds/bin/xc.tem" gcc -o hello hello.o /home/johng/opt/xds/lib/x86/libxds.a -lm -lncurses I have two questions (which may sound silly): Do you have "make" installed and in your path? As indicated by Siegried, have you built the librairies?
  9. nemo

    Calling Modula-2 from C under Linux

    Hhmmm.. The file cmain.c in the native Linux distribution is an example of how to call a Modula-2 function from C after first initializing the RTL and the module (as indicated by Snowman). There is an error in cmain.c: Replace "m2test.h" with "ctest.h" on line 7. After that, it works fine on Ubuntu 9.03. (Note that there is a comment in cmain.c that you cannot use MSVC.)
  10. nemo

    DEBIAN 5.0 and XDS-x86

    I had the same problem in Ubuntu 8.04. (This seems to have been reported as Bug #442418 to the Debian list, with the claim that it is now fixed.) According to what I found, the problem is claimed to be due to compiling in 32-bit mode on a 64-bit machine. Following instructions I found on the web, I removed the inclusion of /usr/include/asm/sigcontext.h on line 193 of X2C.c (by enclosing it in comments) and it now seems to work (so far). Perhaps Snowman may wish to comment further on this. john
  11. nemo

    XDS+tscp for 68000 processor

    sudeep_duge wrote (in part): How are you doing this? Was there a version of TS that produced 68k code?
  12. nemo

    DEBIAN ECTH & Native XDS-x86 f

    Is InOut.sym in your /usr/local/xds/sym/x86 directory and does it have global read permission? john
  13. nemo

    DEBIAN ECTH & Native XDS-x86 f

    I just downloaded and tried building the library on Ubuntu 8.0.4 with gcc-4.2.3. Compilation of X2C.c failed with errors. I then downloaded and tried building the library on SuSE 9.3 with gcc-3.3.5. No problems. Hhhhhmmmm.... gcc has changed. Which version of gcc are you using and exactly what do you mean by the compiler faults? Where does it fail? john
  14. nemo

    DEBIAN ECTH & Native XDS-x86 f

    gemma1 wrote (in part): > I added the /usr/local/xds/sym/X86 into the PATH too but any result I have two questions: (1) Do you really mean xds/sym/X86, that is, did you rename the directory from x86 to X86? (2) Did you build the x86 library as specified in the readme.txt file? john
  15. This is a business decision that I accept but could you please satisfy my curiosity? Is the compiler written in Modula-2 and were compiler tools used?
  16. Snowman observed: "I'd say the Modula-2 community has disappeared years ago. Just look at the posts to comp.lang.modula2." This newsgroup is perhaps not the best indicator of interest. (For example, the FAQ maintainer is not even interested in updating his own FAQ, despite requests.) On the other hand, GNU Modula-2 is quite active as well as Murus. We're not dead yet.
  17. To be clear, BiosIO.c is in the TSCP add-on of the XDS-C 2.51 distribution, not the native compiler version. john
  18. Download the TSCP add-on package from the XDS website. BiosIO.c is in the "C" subdirectory as you can see here: xds/C/BiosIO.c xds/C/SysErr.c xds/C/xtsFIO.c xds/C/xtsIO.c xds/C/xtsLib.c xds/C/Str.c xds/C/FIO.c xds/C/FIOR.c xds/C/Lib.c xds/C/MATHLIB.c xds/C/ShtHeap.c xds/C/IO.c john
  19. nemo

    ISO Modula-2 Documentation

    White-Elephant asked: "Does anyone know where we can get printable documentation concerning ISO Modula-2?" The XDS distributions come with a directory called "pdf" that contains documentation. An on-line shareware textbook on ISO Modula-2 was written by R. Sutcliffe, who is the sometimes maintainer of the Modula-2 usenet FAQ. These two sources should be of help. john
  20. nemo

    XDS-C Fatal F450

    White-Elephant, what compiler were you using before? Sleepyhead, I am not quit sure what you are asking. In C, you can specify a pointer to a fixed location via the usual gobbly-gook: char *TRANRAM = (char *)0xFFFFFC00; How would this help? john
  21. nemo

    Modula-2 IDE

    GNU Modula-2 builds and runs under OS 10/PPC but without cocoa support.
  22. What is in your makefile? If you do not specify the action to link hello, make will automatically invoke cc without the location of the XDS libraries.
  23. Snowman wrote (in part): I find it heartening that interest in Modula-2 is strong enough for such a commissioned port. Can you tell us the CPU architecture?
  24. Link via the "make" directive: xc =m hello.mod More information may be found at http://www.excelsior-usa.com/doc/xc04.html#34 (unfortunately written for Windows but also applicable to Linux).
  25. nemo

    GTK+ in Modula 2

    Ahh -- that may explain it. I have only GTK+ 2.0 on my system. ( I searched my entire gnome tree with "find /opt/gnome/include/ -name '*.h' |xargs grep gtk_file_chooser_default_get_type" and nothing came up.)