home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / palmtops / 2548 < prev    next >
Encoding:
Text File  |  1992-07-31  |  2.0 KB  |  58 lines

  1. Newsgroups: comp.sys.palmtops
  2. Path: sparky!uunet!timbuk.cray.com!hemlock.cray.com!mpj
  3. From: mpj@hemlock.cray.com (Marvin P. Johnson)
  4. Subject: JGRAPH use with PCC / Turbo C ?
  5. Message-ID: <1992Jul31.041604.25023@hemlock.cray.com>
  6. Originator: mpj@hemlock
  7. Keywords: jgraph, pcc, turboc
  8. Lines: 45
  9. Sender: mpj@hemlock (M. P. Johnson)
  10. Organization: Cray Research, France.
  11. Date: 31 Jul 92 04:16:03 CDT
  12.  
  13.  
  14. Hi everyone, greeting from Paris (France, not Texas!)
  15.  
  16. I tried Mark DeSmet's PCC compiler V1.2C on the 95LX. It's really
  17. a *nice* package, and comes with an assembler, PCCA.
  18. I have been trying to access the 95's graphics routines in ROM
  19. (JGRAPH.H, JGRAPH.ASM) for use with PCC but haven't so far been 
  20. successful. The problem is that I can't convert the JGRAPH.* files
  21. to a form acceptable to the PCC programs.
  22. I'd be interested in hearing if anyone has managed this with PCC.
  23. ----
  24. I have also tried Turbo C on an AT, and tried to compile the following
  25. program:
  26.  
  27. #include <stdio.h>
  28. #include "jgraph.h"
  29. main()
  30. {
  31.    G_Mode(G_GRAPHICS);
  32.    G_Rect(100,100,G_OUTLINE);
  33.    getchar();
  34.    G_Mode(G_ALPHA);
  35. }
  36.  
  37. I used A86.COM to assemble JGRAPH.ASM ( I believe A86 creates Turbo C
  38. compatible object modules but this may be untrue (?) ) and used CSVC.OBJ
  39. and the special CRT0.OBJ (C0S.OBJ) file. (Also small-model code, no graphics
  40. library included, etc - as suggested in the file turboc.doc available via ftp)
  41.  
  42. However, I've never been able to get the above code to link successfully.
  43. Seems like there are problems with underscores (like _G_Mode) or something.
  44. Should I be using "void" or something else ?
  45. I suspect it's because my JGRAPH.OBJ file is not correct, but I don't have
  46. the Microsoft assembler MASM available to create a JGRAPH.OBJ. I'll have to
  47. recheck the A86 documentation...
  48.  
  49. Anyway, I would welcome any suggestions/ideas on this. By the way, I got
  50. SMHELLO to compile and run OK on the HP95 via Turbo C, I just can't get the
  51. graphics stuff!
  52.  
  53. Thanks for your comments, and happy palmtopping,
  54.  
  55. Regards,
  56.  
  57. Marvin.
  58.