forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SLINK64 problem

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> 64-bit
View previous topic :: View next topic  
Author Message
silicondale



Joined: 15 Mar 2007
Posts: 243
Location: Matlock, Derbyshire, UK

PostPosted: Wed Jun 08, 2016 6:34 pm    Post subject: SLINK64 problem Reply with quote

I just tried to create a .LIB library in SLINK64 and this is what happens:

File c:\temp\LIB.TXT contains :-
archive C:\VM\OBJECT64\lib\MASTER.lib
addobj C:\VM\OBJECT64\binary\D2013\D_EXIST3.obj
addobj C:\VM\OBJECT64\binary\D2013\D_FCLOSE.obj
addobj C:\VM\OBJECT64\binary\D2013\D_FOPEN2.obj
addobj C:\VM\OBJECT64\binary\D2013\D_GETDDL.obj
... (plus a few more)
file


I run command -
slink64 c:\temp\LIBBLD.txt> c:\VM\OBJECT64\LIB\LIB.TXT

- and LIB.TXT gives
[SLINK64 v1.7, Copyright (c) Silverfrost Ltd. 2015-2016]
***SLINK64 does not know what to do with file c:\temp\LIBBLD.txt

Does SLINK64 not accept command files? Or is it simply not recognising the archive command? The equivalent commands in SLINK work fine and I have been using it in this way for many years.
Back to top
View user's profile Send private message Visit poster's website
ljfarrugia



Joined: 06 Jun 2016
Posts: 35

PostPosted: Wed Jun 08, 2016 6:39 pm    Post subject: Reply with quote

I think the current version of slink64 is quite limited. Apparently it can only build exe files and dll's but not libraries. It also does not understand wild cards, eg. slink64 *.obj does not work, but its fine for the 32-bit linker.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7923
Location: Salford, UK

PostPosted: Wed Jun 08, 2016 7:09 pm    Post subject: Reply with quote

Yes. SLINK64 currently can't build static libraries.
Details are in the document NotesOn64BitFtn95.txt.

You can create a single .obj file and use it as a static library.
Just use INCLUDE statements to include the source into one file and create a single obj file from it.
Back to top
View user's profile Send private message AIM Address
silicondale



Joined: 15 Mar 2007
Posts: 243
Location: Matlock, Derbyshire, UK

PostPosted: Wed Jun 08, 2016 8:59 pm    Post subject: Reply with quote

Thanks, Paul - a useful workaround! Hadn't thought of doing that - but since I actually use all the obj files there isn't even a space penalty
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> 64-bit All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group