home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5634 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: news1.erols.com!newsmaster@erols.com
  2. From: Chris Cobb <ccobb@cseg.com>
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: GCC PROBLEMS?
  5. Date: 18 Mar 1996 00:45:48 GMT
  6. Organization: CSEG, Inc.
  7. Message-ID: <4iibns$1go@news5.erols.com>
  8. References: <Qx9jRAAse0SxEws3@naylor1.demon.co.uk>
  9. NNTP-Posting-Host: ccobb.erols.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.22KIT (Windows; U; 16bit)
  14.  
  15. Chris Naylor <chris@naylor1.demon.co.uk> wrote:
  16. >Can someone helpme with the following problems?
  17. >
  18. >USHORT chip my_image_data[]=
  19. >{
  20. >0xE300...
  21. >        The above is an example from the ACM manual,but fails to compile
  22. >with GCC and is something to do with `chip` part, obviously this
  23. >specifies that it should be in CHIPMEM but gcc does not reconise this
  24. >
  25. >Also what do the PROTO files do.
  26. >How do I generate these files or dont I need to as most of the examples
  27. >in ROM KERNAL MANUALS seem to #include these files.
  28. >
  29. >
  30. >Martin Naylor
  31.  
  32. You will have to take the chip keyword out.  Then dynamicall allocate
  33. a buffer of the same size using AllocMem(size, MEM_CHIP...).  Then
  34. copy the static buffer into the dynamically allocated buffer.
  35.  
  36. Chris
  37.  
  38.  
  39.