home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / amiga / programm / 16248 < prev    next >
Encoding:
Internet Message Format  |  1992-11-23  |  1.3 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!phys.ksu.edu!epa
  2. From: epa@phys.ksu.edu (Eric P. Armstrong)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: gcc2.2.2 Opening Intuition
  5. Date: 23 Nov 1992 16:39:06 GMT
  6. Organization: Kansas State University
  7. Lines: 22
  8. Message-ID: <1er1faINN2pb@moe.ksu.ksu.edu>
  9. References: <1992Nov23.134029.21678@samba.oit.unc.edu>
  10. NNTP-Posting-Host: bohr.phys.ksu.edu
  11.  
  12. In <1992Nov23.134029.21678@samba.oit.unc.edu> Walt.Namitz@launchpad.unc.edu (Walt Namitz) writes:
  13.  
  14. >Does anyone have a working code fragment which opens the intuition library
  15. >that they could email me. I have tried using the examples in the Amiga
  16. >ROM Kernel Reference manual however I haven't had any success. Thanks in
  17. >advance to those who respond.
  18.  
  19. Try this instead.
  20.   
  21. Don't open intuitiion.library in your program.  Just use the functions
  22. normally.  Make sure you use #include <inline/intuition.h> in your
  23. program as well as intuition/intuition.h.  Then link with -lauto
  24. Something like:
  25.  
  26. gcc myprogram.c -o myprogram -lauto
  27.  
  28. libauto has code to automatically open and close the library for you.
  29. It will also open and close other libraries for you automatically.
  30. See the documentation for details.
  31.  
  32. --
  33. Eric P. Armstrong                 epa@phys.ksu.edu
  34.