www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/17/02:32:21

From: "Erik Bongers" <bongerse AT realsoftware DOT be>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: ld.exe: cannot open -lcrtcs
Date: Thu, 16 Apr 1998 22:51:02 +0200
Organization: EUnet Belgium, Leuven, Belgium
Lines: 41
Message-ID: <6h5r00$aeo$1@news3.Belgium.EU.net>
References: <6h5dul$o8o$1 AT news3 DOT Belgium DOT EU DOT net>
NNTP-Posting-Host: dialup004.gent.eunet.be
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Erik Bongers wrote:

>The linker did not except one of the options (-lcrtcs).
                    ^^^^^^ (yes...I know...very silly indeed)
>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
>
>Is there an obvious reason for this or has anyone had a similar problem ?


Never mind this original problem...and sorry for the trouble.
It appears that the linker could not find the file in the specified location
because the path for libraries points to /RSXNTDJ/LIB and not to the
subdirectories /ALL /MT and /ST.
I fixed the problem for this specific example with a -L option :

gcc -Lc:/djgpp/rsxntdj/lib/st -Zwin32 -Zcrtdll -Zdll dlltest.o -o
dlltest.dll
Ntbind: Building DLL Application "dlltest.dll"

However I think better solution would be to alter the specs file,
but I wouldn't dare to touch these obscure writings myself !
So, my new question : Is there a manual for the specs syntax ?
(the specs.txt is a bit too brief for me)
Or else, could someone supply a new "*link:" section (if this is the place
to add the new spec stuff of course).
Should the choice of lib-directory depend on the -Zmt option ?

This is my 3rd day with djgpp and my first with newsgroups,
so I know little and I'm assuming a lot !

Any help is appreciated !

Greetings,

Erik. (bongerse AT realsoftware DOT be)


- Raw text -


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