From: "Erik Bongers" Newsgroups: comp.os.msdos.djgpp Subject: ld.exe: cannot open -lcrtcs Date: Thu, 16 Apr 1998 19:08:20 +0200 Organization: EUnet Belgium, Leuven, Belgium Lines: 172 Message-ID: <6h5dul$o8o$1@news3.Belgium.EU.net> NNTP-Posting-Host: dialup004.gent.eunet.be To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hi. I'm new to DJGPP and since I will be using the compiler to create win32 dll files, the first thing I tried was to compile the DLLCRT example that came with the RSXDJ package. The linker did not except one of the options (-lcrtcs). A dump from the DOS screen : C:\djgpp\RSXNTDJ\SAMPLE\DLL\DLLCRT>make gcc -Zwin32 -Zcrtdll -Wall -O -Zdll -c dlltest.c gcc -Zwin32 -Zcrtdll -Zdll dlltest.o -o dlltest.dll c:/djgpp/bin/ld.exe: cannot open -lcrtcs: No such file or directory (ENOENT) make.exe: *** [dlltest.dll] Error 1 Since "-l" is documented as a valid linker option I do not understand why the linker complains. The library libcrtcs.a seems to be in the right place : C:\DJGPP\RSXNTDJ\LIB\ST. It also has the same dos(short) filename as the long one. Is there an obvious reason for this or has anyone had a similar problem ? Thanks in advance. For completeness I have added as much relevant info about my configuration that I could think of. *** Version of zipfiles I downloaded and installed : v2gnu/bnu281b.zip v2gnu/gcc280b.zip v2gnu/gpp280b.zip v2gnu/lgpp280b.zip v2gnu/mak3761b.zip v2tk/rsxdj131b.zip *** Environment variables : TMP=c:\windows\TEMP TEMP=C:\windows\TEMP PROMPT=$p$g winbootdir=C:\WINDOWS COMSPEC=C:\WINDOWS\COMMAND.COM MSINPUT=C:\MSINPUT CLASSPATH=.;C:\Program Files\VisualCafePDE\BIN\COMPONENTS\SYMBEANS.JAR;C:\Progra m Files\VisualCafePDE\JAVA\LIB\CLASSES.ZIP;C:\Program Files\VisualCafePDE\JAVA\LIB; PATH=C:\WINDOWS;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\DJGPP\BIN;C\DJGPP\RSXNTDJ\B IN DJGPP=C:\DJGPP\DJGPP.ENV RSXNTDJ=C:\DJGPP\RSXNTDJ windir=C:\WINDOWS BLASTER=A220 I5 D1 H5 P330 T6 E620 CMDLINE=make *** DJGPP.ENV (except the rather long "+LS_COLORS" lines): #= Don't edit this line unless you move djgpp.env outside #= of the djgpp installation directory. If you do move #= it, set DJDIR to the directory you installed DJGPP in. #= DJDIR=%:/>DJGPP% +USER=dosuser +TMPDIR=%DJDIR%/tmp +EMU387=%DJDIR%/bin/emu387.dxe +LFN=n [bison] BISON_HAIRY=%DJDIR%/lib/bison.hai BISON_SIMPLE=%DJDIR%/lib/bison.sim [cpp] CPLUS_INCLUDE_PATH=%/>;CPLUS_INCLUDE_PATH%%DJDIR%/lang/cxx;%DJDIR%/include;% DJDIR%/contrib/grx20/include;%RSXNTDJ%/include/mssdk;%RSXNTDJ%/include/win32 C_INCLUDE_PATH=%/>;C_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/contrib/grx20/incl ude;%RSXNTDJ%/include/mssdk;%RSXNTDJ%/include/win32 OBJCPLUS_INCLUDE_PATH=%/>;OBJCPLUS_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/lang /objc;%RSXNTDJ%/include/mssdk;%RSXNTDJ%/include/win32 OBJC_INCLUDE_PATH=%/>;OBJC_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/lang/objc;%R SXNTDJ%/include/mssdk;%RSXNTDJ%/include/win32 [gcc] COMPILER_PATH=%/>;COMPILER_PATH%%DJDIR%/bin LIBRARY_PATH=%/>;LIBRARY_PATH%;%RSXNTDJ%/lib;%DJDIR%/lib;%DJDIR%/contrib/grx 20/lib [info] INFOPATH=%/>;INFOPATH%%DJDIR%/info;%DJDIR%/gnu/emacs/info INFO_COLORS=0x1f.0x31 [emacs] INFOPATH=%/>;INFOPATH%%DJDIR%/info;%DJDIR%/gnu/emacs/info [less] LESSBINFMT=*k<%X> LESSCHARDEF=8bcccbcc12bc5b95.b127.b LESS=%LESS% -h5$y5$Dd2.0$Du14.0$Ds4.7$Dk9.0$ [locate] +LOCATE_PATH=%DJDIR%/lib/locatedb.dat *** SPECS file : *asm: *asm_final: *cpp: %{posix:-D_POSIX_SOURCE} %{Zmt: -D__MT__} %{Zdll: -D__DLL__} %{Zcrtdll*:-D__CRTRSXNT__}\ %{Zwin32: -D__WIN32__ -D__RSXNT__ -D__EMX__ -Ic:/djgpp/rsxntdj/include} *cc1: *cc1plus: *endfile: *link: %{Zwin32: -Lc:/djgpp/rsxntdj/lib/all} *link_command: %{!c:%{!M:%{!MM:%{!E:%{!S:ld %l %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} \ %{r} %{s} %{t} %{u*} %{x} %{z}\ %{!A:%{!nostartfiles:%{!nostdlib:%S}}} %{static:}\ %{L*} %D %{T*} %o %{!Zwin32: -Tdjgpp.djl}%{Zwin32: -Trsxnt.djl}\ %{!nostdlib: %{!Zwin32: -lgcc %L -lgcc %{!A:%E}} \ %{Zwin32: %{!Zdll:-lmain} %{Zdll:-ldll} -lalias \ %{!Zcrtdll*: %G %L %G %{!Zno-rte:-lemx -lemx2} -lkrn32 -lusr32 -lgdi32} \ %{Zcrtdll*: -lstati %{!Zmt: -lcrtcs} %{Zmt: -lcrtcm} -lemx2 -lkrn32 -lusr32 -lgdi32}} }}}}}} %{!Zwin32:%{!c:%{!M:%{!MM:%{!E:%{!S:stubify %{v} %{o*:%*} %{!o*:a.out}}}}}}} %{Zwin32:%{!c:%{!M:%{!MM:%{!E:%{!S:%{!o*:%especs: no output name} ntbind %{!g:-remove} %{o*:%*} %{Zrsx32: -s dosstub.rsx }}}}}}} *lib: -lc %{Zwin32:%{Zdll:%{Zso:-ldllso}%{Zno-rte:-ldllno}%{!Zso:%{!Zno-rte:-ldllrt}}} %{!Zdll:-lc_app} -lc} *startfile: %{!Zwin32:%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}} \ %{Zwin32:%{!Zdll:crt0w32.o%s}%{Zdll:dll0w32.o%s} %{Zsysv-signals: sigsysv%O%s} %{Zbsd-signals: sigbsd%O%s} %{Zbin-files: binmode%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 *multilib: st Zwin32 !Zmt;mt Zwin32 Zmt; *** (Thanks for reading to the bottom)