home *** CD-ROM | disk | FTP | other *** search
- Path: wapping.ecs.soton.ac.uk!usenet
- From: Nicholas Allen <nja93@ecs.soton.ac.uk>
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Slight problem with DICE
- Date: Wed, 17 Apr 1996 20:52:26 +0100
- Organization: Electronics and Computer Science, University of Southampton
- Message-ID: <31754BFA.3AE8A270@ecs.soton.ac.uk>
- References: <4l2tr1$a60@bignews.shef.ac.uk>
- NNTP-Posting-Host: tybalt.ecs.soton.ac.uk
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (X11; I; Linux 1.3.48 i586)
-
- Allatt MD wrote:
- >
- > I'm having a slight problem with my DICE compiler -
- >
- > In my source code I have the line :
- >
- > IntuitionBase=OpenLibrary("intuition.library",37L);
- >
- > This is fine as far as all the magazines I have read, and all other sources of
- > information as well, but my compiler keeps giving me a int-ptr conversion
- > warning regarding the 37L part. This is getting extremely annoying as I want
- > to test-run my programs with GoldED before I compile them in full, but
- > GoldED will not allow you to run a program that displays a warning unless I
- > play around with the arexx macro, but I don't really want to do that.
- > Does anyone know what I'm doing wrong?
- >
- > Matt
-
- I don't think it is the 37L that is giving you the problem. If you have
- not included the file <clib/intuition_protos.h> at the top of your
- program then DICE won't know that OpenLibrary returns a pointer and will
- assume it returns an int. This could be the reason for the int-ptr
- coversion warning. Also, you may want to declare IntuitionBase as struct
- Library * instead of APTR (if you haven't already) and this will make
- sure you don't get warnings about pointer conversions as well. Hope this
- helps.
-