--- In gbadev@y..., Davide Inglima <limacat@l...> wrote:
> On Thursday 20 December 2001 16:08, you wrote:
>
> > PPS I use gcc to do my linking not ld.
>
> If I'm not mistaken it should be the same.
> Gcc is a frontend to both the C and C++ compiler, the assembler and
the
> linker.
Yes, but if you call it instead of ld then it automatically includes
the crt0.o file from inside your include directory structure
depending on what flags you use (ie thumb and/or interworking).. or
at least thats what the version of devkitadv that I have does. It's
slightly annoying becuase the crt0.S file wasn't included in my
distribution, so i have no idea what's inside it ;)
Basically what I'm saying is that if they can't get it to work, then
try using gcc. If that works then most of your problems are over
until you want to do some specialised work like altering your
linkscript or ctr0.
I'm using gcc with Jeff's linker setup and all. I've said that before, but I wouldn't expect anyone to remember. =P Anyway, I'm at my wit's end, about to go...
Daniel Papenburg
papenbd@...
Dec 19, 2001 12:01 pm
... erm ... you typedef "character" after you use it the first time. typical "out of scope" error ... no compiler should be happy with this ......
... well spotted ... 2 misttakes in a row (& instead of * and declaring after first use) ... :) w00h00 ... get him a C book ... :) (sorry, couldn't resist)...
Hello Markus, ... MG> well spotted ... 2 misttakes in a row (& instead of * and declaring MG> after first use) ... :) w00h00 ... get him a C book ... :)...
... yes, true for C++, since GCC takes the extension to decide if it should compile it as C or C++ (afaik). BUT it wouldn't solve the "out of scope" error...
Hello Markus, ... MG> yes, true for C++, since GCC takes the extension to decide if it should MG> compile it as C or C++ (afaik). MG> BUT it wouldn't solve the...
... I ... Is this anything to do with the fact that char is a reserved word, or does c not mind you using reserved words at the start of variable names? O...
Hello Daniel, ... Well, actually this is not needed -- C++ already has 'bool' type. ... If you use C++ (and so it seems -- references do not exist in pure C), ...
If you're using C++, then you should probally use classes and not structs anyway. With the proper coding of inline accessor functions, there should be no...
Thanks for all the tips, guys. I just made a mistake when pasting my code into the email -- the struct declaration did come before the function proto, etc. The...
Daniel Papenburg
papenbd@...
Dec 20, 2001 11:13 am
Hello Daniel, ... Hmm, this "interworking" problem usually occurs when you use different compiler switches for files from the same project. I compile & link my...
... problems than it ... supporting ... being able to ... different ... my ... Actually I had a similar problem with this, I was also getting that really...
... If I'm not mistaken it should be the same. Gcc is a frontend to both the C and C++ compiler, the assembler and the linker. If you need only to put stuff...
... the ... Yes, but if you call it instead of ld then it automatically includes the crt0.o file from inside your include directory structure depending on what...
Yea, I encountered a similar problem too, with the linker wanting to link in memcpy() when there was nowhere that I was using it! Well, after a little poking...