Orlando Llanes a écrit:
On Mon, 7 Sep 1998, Peter Gerwinski wrote:
Thamm, Russell wrote:
Now, I keep getting a linker error about crt0.o.
How do I overcome this?
Did you install gcc-2.8.1 for DJGPP in the first place? It's
libraries are needed for GPC. Also, an old version of GPC or
GCC can interfere with the new installation; better remove the
old one.
I got the same error Thamm did :
I have just dowloaded the same binaries and got the same error.
The error comes from a wrong specs file coming with those binaries.
All is correct with the original specs file coming from the DJGPP
version of gcc 2.8.1 (which was correctly included in the previous
binary djgpp distribution). I give it in attachment for convenience (it
must be putted into the directory %DJGPP%\LIB\GCC-LIB\DJGPP\2.81).
--
Maurice Lombardi
Laboratoire de Spectrometrie Physique,
Universite Joseph Fourier de Grenoble, BP87
38402 Saint Martin d'Heres Cedex FRANCE
Tel: 33 (0)4 76 51 47 51
Fax: 33 (0)4 76 51 45 44
mailto:Maurice.Lombardi@ujf-grenoble.fr
*asm:
*asm_final:
*cpp:
%{posix:-D_POSIX_SOURCE}
*cc1:
%(cc1_spec)
*cc1plus:
*endfile:
*link:
*lib:
-lc
*libgcc:
-lgcc
*startfile:
crtf.o%s %{pg:gcrt0.o%s}%{!pg:crt0.o%s}
*switches_need_spaces:
*signed_char:
%{funsigned-char:-D__CHAR_UNSIGNED__}
*predefines:
-Dunix -Di386 -DGO32 -DMSDOS -DDJGPP=2 -DDJGPP_MINOR=1
*cross_compile:
0
*version:
2.8.1
*multilib:
. ;
*multilib_defaults:
*multilib_extra:
*multilib_matches:
*cpp_cpu:
-Di386 -Asystem(unix) -Acpu(i386) -Amachine(i386) %{mcpu=i486:-Di486} %{m486:-Di486} %{mpentium:-Dpentium -Di586} %{mcpu=pentium:-Dpentium -Di586} %{mpentiumpro:-Dpentiumpro -Di686} %{mcpu=pentiumpro:-Dpentiumpro -Di686}
*cc1_cpu:
%{!mcpu*: %{m386:-mcpu=i386 -march=i386} %{mno-486:-mcpu=i386 -march=i386} %{m486:-mcpu=i486 -march=i486} %{mno-386:-mcpu=i486 -march=i486} %{mno-pentium:-mcpu=i486 -march=i486} %{mpentium:-mcpu=pentium} %{mno-pentiumpro:-mcpu=pentium} %{mpentiumpro:-mcpu=pentiumpro}}
*link_command:
%{!fsyntax-only: \
%{!c:%{!M:%{!MM:%{!E:%{!S:ld %l %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} \
%{r} %{s} %{t} %{u*} %{x} %{z} %{Z}\
%{!A:%{!nostdlib:%{!nostartfiles:%S}}}\
%{static:} %{L*} %D %o\
%{!nostdlib:%{!nodefaultlibs:%G %L %G}}\
%{!A:%{!nostdlib:%{!nostartfiles:%E}}}\
-Tdjgpp.djl %{T*}}}}}}}
%{!c:%{!M:%{!MM:%{!E:%{!S:stubify %{v} %{o*:%*} %{!o*:a.out} }}}}}