home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!agate!stanford.edu!rock!concert!samba!usenet
- From: Walt.Namitz@launchpad.unc.edu (Walt Namitz)
- Subject: gcc2.2.2 open a library
- Message-ID: <1992Nov18.020038.21890@samba.oit.unc.edu>
- Sender: usenet@samba.oit.unc.edu
- Nntp-Posting-Host: lambada.oit.unc.edu
- Organization: University of North Carolina Extended Bulletin Board Service
- Date: Wed, 18 Nov 1992 02:00:38 GMT
- Lines: 24
-
- Recently I tried out this code fragment which came from the Amiga ROM
- Kernel Reference Manual.
-
- #include<stdio.h>
- #include<intuition/intuition.h>
- extern long OpenLibrary;
- struct IntuitionBase *IntuitionBase = NULL;
- main()
- {
- IntuitionBase = (struct IntitionBase *)
- OpenLibrary("intuition.library",33);
- if(IntuitionBase == NULL) exit();
- }
- When I compile this fragment I get the following error which refers to the
- line that tries to open the library;
- Called object is not a function
- Anyone know what is wrong with this code fragment?
- Thanx in advance.
-
- --
- The opinions expressed are not necessarily those of the University of
- North Carolina at Chapel Hill, the Campus Office for Information
- Technology, or the Experimental Bulletin Board Service.
- internet: laUNChpad.unc.edu or 152.2.22.80
-