Search the web
Sign In
New User? Sign Up
gbadev
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
more compiler madness   Message List  
Reply | Forward Message #9135 of 15019 |
Re: more compiler madness

--- 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.

O





Thu Jan 3, 2002 1:32 pm

owaincole
Offline Offline
Send Email Send Email

Forward
Message #9135 of 15019 |
Expand Messages Author Sort by Date

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@...
Send Email
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 ......
Markus Glanzer
vampy2000.geo
Offline Send Email
Dec 19, 2001
12:11 pm

... Should that not be "character *ch" for passing by reference or am I misunderstanding... Pete -- http://bits.bris.ac.uk/dooby/...
Pete
flobkins
Offline Send Email
Dec 19, 2001
12:11 pm

... well spotted ... 2 misttakes in a row (& instead of * and declaring after first use) ... :) w00h00 ... get him a C book ... :) (sorry, couldn't resist)...
Markus Glanzer
vampy2000.geo
Offline Send Email
Dec 19, 2001
12:25 pm

Hello Markus, ... MG> well spotted ... 2 misttakes in a row (& instead of * and declaring MG> after first use) ... :) w00h00 ... get him a C book ... :)...
groepaz
groepaz2000
Offline Send Email
Dec 19, 2001
12:35 pm

... 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...
Markus Glanzer
vampy2000.geo
Offline Send Email
Dec 19, 2001
12:52 pm

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...
groepaz
groepaz2000
Offline Send Email
Dec 19, 2001
1:17 pm

... It's the default, but with -x language you can force it to compile under the language you choose. E.g. gcc -x c++ test.c -- limaCAT...
Davide Inglima
davide_inglima
Offline Send Email
Dec 21, 2001
5:59 pm

... 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...
owaincole
Offline Send Email
Dec 19, 2001
2:16 pm

... nope c doesn't care. for example 'int internal' won't cause problems :) -Stephen...
Stephen Stair
sgstair
Online Now Send Email
Dec 19, 2001
5:06 pm

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), ...
Maciej Sinilo
yarpen2002
Offline Send Email
Dec 19, 2001
7:06 pm

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...
Dennis Munsie
bea_dennis
Offline Send Email
Dec 19, 2001
7:30 pm

... _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com...
John Q. Pretentious
johnisaheadcase
Online Now Send Email
Dec 19, 2001
8:59 pm

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@...
Send Email
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...
Maciej Sinilo
yarpen2002
Offline Send Email
Dec 20, 2001
2:58 pm

... problems than it ... supporting ... being able to ... different ... my ... Actually I had a similar problem with this, I was also getting that really...
owaincole
Offline Send Email
Dec 20, 2001
3:14 pm

... 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...
Davide Inglima
davide_inglima
Offline Send Email
Dec 21, 2001
5:59 pm

... 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...
owaincole
Offline Send Email
Jan 3, 2002
6:04 pm

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...
Roger Milne
rogermilne100
Offline Send Email
Dec 21, 2001
3:58 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help