home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / amiga / programm / 15997 < prev    next >
Encoding:
Text File  |  1992-11-17  |  1.3 KB  |  36 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!agate!stanford.edu!rock!concert!samba!usenet
  3. From: Walt.Namitz@launchpad.unc.edu (Walt Namitz)
  4. Subject: gcc2.2.2 open a library
  5. Message-ID: <1992Nov18.020038.21890@samba.oit.unc.edu>
  6. Sender: usenet@samba.oit.unc.edu
  7. Nntp-Posting-Host: lambada.oit.unc.edu
  8. Organization: University of North Carolina Extended Bulletin Board Service
  9. Date: Wed, 18 Nov 1992 02:00:38 GMT
  10. Lines: 24
  11.  
  12. Recently I tried out this code fragment which came from the Amiga ROM
  13. Kernel Reference Manual.
  14.  
  15. #include<stdio.h>
  16. #include<intuition/intuition.h>
  17. extern long OpenLibrary;
  18. struct IntuitionBase *IntuitionBase = NULL;
  19. main()
  20. {
  21.     IntuitionBase = (struct IntitionBase *)
  22.             OpenLibrary("intuition.library",33);
  23.     if(IntuitionBase == NULL) exit();
  24. }
  25. When I compile this fragment I get the following error which refers to the
  26. line that tries to open the library;
  27.     Called object is not a function
  28. Anyone know what is wrong with this code fragment?
  29. Thanx in advance.
  30.  
  31. --
  32.    The opinions expressed are not necessarily those of the University of
  33.      North Carolina at Chapel Hill, the Campus Office for Information
  34.         Technology, or the Experimental Bulletin Board Service.
  35.            internet:  laUNChpad.unc.edu or 152.2.22.80
  36.