View previous topic :: View next topic |
Author |
Message |
remacle
Joined: 07 Nov 2006 Posts: 1
|
Posted: Tue Nov 07, 2006 4:24 am Post subject: Simply link with a library to create an executable |
|
|
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 |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7924 Location: Salford, UK
|
Posted: Tue Nov 07, 2006 6:04 am Post subject: Simply link with a library to create an executable |
|
|
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 |
|
|
weaverwb
Joined: 04 Aug 2005 Posts: 37 Location: Monterey
|
Posted: Fri Nov 10, 2006 5:17 pm Post subject: Simply link with a library to create an executable |
|
|
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 |
|
|
|