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