delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/03/17/13:16:43

Message-Id: <5.0.0.25.1.20010317190004.009de8c0@127.0.0.1>
X-Sender: piasecki/pop3 DOT fuw DOT edu DOT pl AT 127 DOT 0 DOT 0 DOT 1 (Unverified)
X-Mailer: QUALCOMM Windows Eudora Version 5.0
Date: Sat, 17 Mar 2001 19:14:16 +0100
To: djgpp AT delorie DOT com
From: Eryk Piasecki <Eryk DOT Piasecki AT fuw DOT edu DOT pl>
Subject: problem with linking
Mime-Version: 1.0
Reply-To: djgpp AT delorie DOT com

Dear Gurus!
I have the problem with linking getting the "cannot find -lgcc" message.
------------------
Here is the contents of the environ.txt:
winbootdir=C:\WINDOWS
COMSPEC=C:\COMMAND.COM
DJGPP=C:\DJGPP\DJGPP.ENV
PROMPT=$p$g
LIB=C:\F77L3\LIB
TMP=C:\
TEMP=C:\TEMP
EDITOR=C:\NC\NC.EXE
SHELL=C:\COMMAND.COM
NC=C:\NC
NORTON=C:\NC
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\DJGPP\BIN;C:\DJGPP;C:\DJGPP\LIB;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\DOS;\;C:\;C:\F77L3\LIB;C:\F77L3\BIN;\BATCH;C:\AXUM;C\UTIL;C:\TP\BIN;C:\TP\BIN\UTILS;C:\NU;C:\NC;C:\PROGRA~1\MICROS~2\OFFICE
windir=C:\WINDOWS
BLASTER=A220 I5 D1 T4
----------------
go32 gives the following result:
DPMI memory available: 34397 Kb
DPMI swap space available: 27795 Kb
----------------
autoexec.bat:
SET BLASTER=A220 I5 D1 T4
SET DJGPP=C:\DJGPP\DJGPP.ENV
echo off
prompt $p$g
C:\CFG801
C:\DOS801
SET LIB=C:\F77L3\LIB
SET TMP=C:\
SET TEMP=C:\TEMP
SET EDITOR=C:\NC\NC.EXE
SET SHELL=C:\COMMAND.COM
SET NC=C:\NC
SET NORTON=C:\NC
PATH 
C:\WINDOWS;C:\WINDOWS\COMMAND;C:\DOS;\;C:\;C:\F77L3\LIB;C:\F77L3\BIN;\BATCH;C:\AXUM;C\UTIL;C:\TP\BIN;C:\TP\BIN\UTILS;C:\NU;C:\NC;C:\PROGRA~1\MICROS~2\OFFICE
SET 
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\DJGPP\BIN;C:\DJGPP;c:\DJGPP\LIB;%PATH%
rem LH /L:2,16720 C:\WINDOWS\COMMAND\DOSKEY

rem C:\WINDOWS\COMMAND\MSCDEX.EXE /D:MSCD001
mode con codepage prepare=((852) C:\WINDOWS\COMMAND\ega.cpi)
mode con codepage select=852
keyb pl,,C:\WINDOWS\COMMAND\keybrd4.sys
------------
config.sys:
DEVICE=C:\WINDOWS\HIMEM.SYS
DEVICE=C:\WINDOWS\setver.exe
rem DEVICE=C:\WINDOWS\EMM386.EXE NOEMS I=B000-B7FF x=b800-cbff i=d800-efff
FILES=100
DOS=UMB,HIGH
LASTDRIVE=Z
BREAK=ON
STACKS=18,256
SHELL=C:\COMMAND.COM C:\ /E:2048 /p
NUMLOCK=OFF
SWITCHES=/F

DEVICE=C:\PIONEER\ATAPI_CD.SYS /S:2 /D:MSCD001
device=C:\WINDOWS\COMMAND\display.sys con=(ega,,1)
Country=048,852,C:\WINDOWS\COMMAND\country.sys
---------------
After the command
gcc spline2.c -v -o spline2.exe
I get the following result:
i386 -D__GO32 -D__DJGPP=2 -D__MSDOS -Asystem(unix) -Asystem(msdos) 
-Acpu(i386) -
Amachine(i386) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ 
-D__tune_p
entium__ -imacros c:/djgpp/lib/../include/sys/version.h -remap spline2.c 
c:/djgp
p/tmp\cccMwUuu.i
GNU CPP version 2.95.2 19991024 (release) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
  c:/djgpp/include
  c:/djgpp/lib/gcc-lib/djgpp/2.952/include
  c:/djgpp/include
End of search list.
The following default directories have been omitted from the search path:
  $DJDIR/lang/cxx
  $DJDIR/lib/gcc-lib/djgpp/2.952/../../../../djgpp/include
End of omitted list.
  cc1 c:/djgpp/tmp\cccMwUuu.i -quiet -dumpbase spline2.c -version -o 
c:/djgpp/tmp
\cceWWX8b.s
GNU C version 2.95.2 19991024 (release) (djgpp) compiled by GNU C version 
2.95.2
  19991024 (release).
  c:/djgpp/bin/as.exe -o c:/djgpp/tmp\cctbRSnP.o c:/djgpp/tmp\cceWWX8b.s
  c:/djgpp/bin/ld.exe -o spline2.exe c:/djgpp/lib/crt0.o -Lc:/djgpp/lib 
-Lc:/djgp
p/lib/gcc-lib/djgpp/2.952 -Lc:/djgpp/bin -Lc:/djgpp/lib c:/djgpp/tmp\cctbRSnP.o
-lgcc -lc -lgcc -Tdjgpp.djl
c:/djgpp/bin/ld.exe: cannot find -lgcc

HELP PLEASE!

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019