www.digitalmars.com         C & C++   DMDScript  

c++.command-line - LINK fails to find libraries with . in their names

reply "Matthew" <admin stlsoft.dot.dot.dot.dot.org> writes:
As in:

dmc -o..\..\..\bin\C_dm.exe  .\C.obj ..\..\..\lib\recls.dm.lib
wininet.lib
link
.\C.obj,..\..\..\bin\C_dm.exe,,..\..\..\lib\recls.dm+wininet+user32+kern
el32/noi;
OPTLINK (R) for Win32  Release 7.50B1
Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved

..\..\..\lib\recls.dm
 Warning 2: File Not Found ..\..\..\lib\recls.dm
.\C.obj(C)
 Error 42: Symbol Undefined _Recls_SearchClose
.\C.obj(C)
 Error 42: Symbol Undefined _Recls_GetErrorString
.\C.obj(C)
... <etc>


Anything I can do about this - quotes don't work - or do I have to
change my naming convention to recls-dm.lib?
Sep 28 2004
parent "Matthew" <admin stlsoft.dot.dot.dot.dot.org> writes:
Ok, well delving through other projects shows that I can get what I want
by using LINK directly and specifying the .lib extension.

So, the bug seems to be that DMC strips the .lib automatically. Can I
request that either (i) it leaves the .lib extension on in all cases, or
(ii) in cases where there is a . in the file name?

Cheers

Matthew


"Matthew" <admin stlsoft.dot.dot.dot.dot.org> wrote in message
news:cjcpk9$30jp$1 digitaldaemon.com...
 As in:

 dmc -o..\..\..\bin\C_dm.exe  .\C.obj ..\..\..\lib\recls.dm.lib
 wininet.lib
 link
.\C.obj,..\..\..\bin\C_dm.exe,,..\..\..\lib\recls.dm+wininet+user32+kern
 el32/noi;
 OPTLINK (R) for Win32  Release 7.50B1
 Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved

 ..\..\..\lib\recls.dm
  Warning 2: File Not Found ..\..\..\lib\recls.dm
 .\C.obj(C)
  Error 42: Symbol Undefined _Recls_SearchClose
 .\C.obj(C)
  Error 42: Symbol Undefined _Recls_GetErrorString
 .\C.obj(C)
 ... <etc>


 Anything I can do about this - quotes don't work - or do I have to
 change my naming convention to recls-dm.lib?
Sep 28 2004