Mail Archives: djgpp/2001/08/28/17:06:31
> > Now for (hopefully the last) hurdle...linking. I've had to do some (I
> > think) odd things to get my code to even come close to linking:
> >
> > -Explicitly included crt0.o in the list of object files to link.
> > -Put -lc -lstdc++ -lgcc at the end of the linker command line.
> >
> > And I still get errors like these:
> >
> > /opt/djgpp/i586-pc-msdosdjgpp/lib/libgcc.a(unwind-dw2-fde.o): In function
> > `read_encoded_value_with_base':
> > unwind-dw2-fde.c:211: multiple definition of `__register_frame_info'
> > /opt/djgpp/i586-pc-msdosdjgpp/lib/libc.a(rfinfo.o)(.text+0x0):rfinfo.c:
> > first defined here
> >
>
> Last time I built Linux to DJGPP cross-compiler some months ago and saw no similar problems. But it
> was after applying some patches (all should be in gcc30s2.zip) Perhaps I'll redo that sometimes with gcc-
> 3.0.1, but I cannot say now when.
Tried applying all the patches in gcc30s2.zip and redoing everything. All
of the patches except for libstdc++-v3/src/Makefile.am.diff applied
cleanly (I left Makefile.am as-is).
End result was exactly the same (still had to explicitly include crt0.o,
libc, libgcc, and libstdc++ when linking, still got multiple definitions
of __register_frame_info, still got undefined references to setlocale,
toupper, and tolower). :(
The ever-hopeful,
Will Robinson
:)
- Raw text -