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 

Simply link with a library to create an executable

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Plato
View previous topic :: View next topic  
Author Message
remacle



Joined: 07 Nov 2006
Posts: 1

PostPosted: Tue Nov 07, 2006 4:24 am    Post subject: Simply link with a library to create an executable Reply with quote

When linking with Plato, I got the following error:

Compilation completed with no errors
Linking...
WARNING - Executable name extension changed to .DLL
*** Cannot create DLL: nothing to export

I got this error message when I add in the Linker options
Extra linker options /LIBRARY fpmich2.lib


Many thanks for your help.

Vincent




Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Tue Nov 07, 2006 6:04 am    Post subject: Simply link with a library to create an executable Reply with quote

Vincent

/LIBRARY is not a linker option. It is a compiler option. Also it is only used with /LGO or /LINK which means that it cannot be used from Plato which never uses /LGO and does not normally use /LINK.

The usual way to add libraries is as a DLL and via a project "Reference".

If you do not have a DLL then your lib must be a static library rather than a stub library.
Off hand I cannot remember how to add a static library using Plato.
Maybe you just give its name in the extra linker options.
Let me know if you need further details.
Back to top
View user's profile Send private message
weaverwb



Joined: 04 Aug 2005
Posts: 37
Location: Monterey

PostPosted: Fri Nov 10, 2006 5:17 pm    Post subject: Simply link with a library to create an executable Reply with quote

Hi,

It just goes in the Plato3 references. I have all kinds of libraries there, including DLLs and extensive homemade libraries built with slink.

slink -implib:retina.lib -addobj:*.obj is the command I use to rebuild it whan I change the contents.



Bruce Weaver
_________________
Bruce+Weaver
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Plato 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