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