Mail Archives: djgpp/1998/04/17/02:32:21
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 -