Silverfrost Forums

Welcome to our forums

Simply link with a library to create an executable

7 Nov 2006 3:24 #1215

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

7 Nov 2006 5:04 #1220

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.

10 Nov 2006 4:17 #1251

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

Please login to reply.