home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / amiga / programm / 19247 < prev    next >
Encoding:
Text File  |  1993-01-27  |  2.2 KB  |  48 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!ukma!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!csn!tpsrd!tplrd!paulg
  3. From: paulg@tplrd.tpl.oz.au (Paul Gittings)
  4. Subject: Re: HELP with GCC/G++: CHIP and printf() in C++ mode.
  5. Message-ID: <1993Jan28.104713.12976@tpl68k0.tplrd.tpl.oz.au>
  6. Originator: paulg@sydrd19
  7. Lines: 35
  8. Nntp-Posting-Host: sydrd19
  9. Organization: Telectronics Pacing Systems
  10. References: <1993Jan26.190254.63224@cc.usu.edu>
  11. Date: Wed, 27 Jan 93 23:41:34 GMT
  12.  
  13.  
  14. In article <1993Jan26.190254.63224@cc.usu.edu>, slmt9@cc.usu.edu (Joshua Dinerstein) writes:
  15. >     1- My teacher likes to use both the "cout" introduced in C++ and the
  16. > printf() that is used in ansi C. But I cannot make GCC compile with printf()
  17. > calls in there. I get an error that says that the symbol ___builtin_printf not
  18. > defined. I edited the libc.a file and it has the label in there. Is this lib
  19. > not being linked? 
  20.  
  21. To really help you we need to see the output form the compiler passes (ie,
  22. bung a -v into the command line).  I've done the above with gcc 2.2.2 (at
  23. least I think I did)  and see no reason why it should not work with 
  24. gcc 2.3.3.  You will need to ensure that you link with -lg++ (to pick up
  25. iostream routines; cout etc).  I think there used to be a problem in
  26. gcc 2.2.2 that if you -lamiga (the converted amiga library) appeared before
  27. -lc  you would end up picking up the printf in the amiga library not the
  28. gcc one (since Markus now includes his onwn amiga library this problem
  29. may have gone away).  Have to see the -v output from your compile to really
  30. help though.
  31.  
  32.  
  33. >     2- I need to do a project in GCC that has some graphics in it. And I
  34. > saw a message here that said that the CHIP keyword was not found in GCC. is
  35. > this still the case? I need to force some graphics storage to be in CHIP ram.
  36. >     Does anyone know how to do this? To be honest I have not tried this out
  37. > yet. I have spent 2 days trying to just get this thing to work period so...
  38.  
  39. I haven't tried this either.  What you could do is allocate memory dynamically
  40. using the amiga memory allocation routines (sorry not at home so I don't have
  41. the RKM's).  Not as nice as using the CHIP keyword (since you have an extra
  42. pointer to deal with) but it should work.
  43.  
  44. Paul
  45.