home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!psinntp!ncrlnk!ncr-mpd!kentd
- From: kentd@FtCollins.NCR.com (Kent Dalton)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: gcc2.2.2 open a library
- Message-ID: <KENTD.92Nov19103850@zappa.FtCollins.NCR.com>
- Date: 19 Nov 92 10:38:50 GMT
- References: <1992Nov18.020038.21890@samba.oit.unc.edu>
- Sender: uucp@ncr-mpd.FtCollinsCO.NCR.COM
- Organization: NCR Microelectronics, Ft. Collins, CO
- Lines: 34
- In-reply-to: Walt.Namitz@launchpad.unc.edu's message of 18 Nov 92 02:00:38 GMT
-
- >>>>> On 18 Nov 92 02:00:38 GMT, (Walt Namitz) said:
-
-
- Here's my guess.
-
- Walt> #include<stdio.h>
- Walt> #include<intuition/intuition.h>
- Walt> extern long OpenLibrary;
- ^^^^^^^^^^^^^^^^^^^^^^^
-
- Here you declare OpenLibrary as an external variable of type long
- integer. Then later you try to call it is a function returning a pointer
- datatype:
-
- Walt> IntuitionBase = (struct IntitionBase *)
- Walt> OpenLibrary("intuition.library",33);
-
- And then the compiler gets way confused because you're trying to invoke
- a variable as a function:
-
- Walt> When I compile this fragment I get the following error which
- Walt> refers to the line that tries to open the library;
- Walt>
- Walt> Called object is not a function
-
- --
- /**************************************************************************/
- /* Kent Dalton * EMail: Kent.Dalton@FtCollinsCO.NCR.COM */
- /* NCR Microelectronics * Phone: (303) 223-5100 X-319 */
- /* 2001 Danfield Ct. MS470A * FAX: (303) 226-9556 */
- /* Fort Collins, Colorado 80525 * */
- /**************************************************************************/
- SHHHH!! I hear SIX TATTOOED TRUCK-DRIVERS tossing ENGINE BLOCKS
- into empty OIL DRUMS..
-