Mail Archives: djgpp/1998/01/08/12:46:15
Thanks for responding Nate (and anyone else)
>
> >When I run gcc on a *.cpp using -t it links crt0.o. Shouldn't it use
> >gcrt0.o?
> No. `gcrt0.o' is used when linking a program for profiling. Both C and C++
> use `crt0.o' normally.
> > As is I get a ld warning "can't find start using default...."
> >If I specify gcrt0.o as input I dont get the message but 2 startup files
> >can't be right?
> No, shouldn't be. Especially since `gcrt0.o' is the same as `crt0.o' with a
> jump instruction added which pulls in the profiling code.
> >Then- either way I get and ld message "memory exausted".
> This is difficult to interpret. Please post:
> * The *exact* error messages you see
> * The command line you use to compile
> * The source file you are trying to compile (please reduce it to a small
> example)
>
> Nate Eldredge
> eldredge AT ap DOT net
It's fixed. When I tried to condense the source I coudn't come up with
any part that would be more relevant than another, so I looked
elsewhere.
I'd been messing with the "RSXWDK" libraries and had gotten crt0.o moved
to the djgpp lib directory. Recompiled the assembly file and everything
is fine.
For anyones future reference the messages were.
LD.exe:warning cannot find entry symbol start; defaulting to 000010d0.
LD.exe: final link failed; memory exausted.
Thanks for takeing the time to try and save me from myself.
Charles
- Raw text -