summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authoralaviss <alaviss@users.noreply.github.com>2020-02-18 18:44:54 +0000
committerGitHub <noreply@github.com>2020-02-18 19:44:54 +0100
commitd1f9f11245a29f00bfa8cd86f9b4eb4ab0963a15 (patch)
treeae724886f93ef81b82da30d30ef1c31e0dad3841 /doc
parent046bb0b881b1e4917fd0ff230f9d716d31f1f20c (diff)
downloadNim-d1f9f11245a29f00bfa8cd86f9b4eb4ab0963a15.tar.gz
manual: documents changes regarding dynlib (#13425)
* manual: documents changes regarding dynlib

Closes #13416

* manual: clean up sentence phrasing
Diffstat (limited to 'doc')
-rw-r--r--doc/manual.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/manual.rst b/doc/manual.rst
index 2f5673684..b31458fc4 100644
--- a/doc/manual.rst
+++ b/doc/manual.rst
@@ -7224,6 +7224,9 @@ The string literal passed to ``exportc`` can be a format string:
 In the example the external name of ``p`` is set to ``prefixp``. Only ``$1``
 is available and a literal dollar sign must be written as ``$$``.
 
+If the symbol should also be exported to a dynamic library, the ``dynlib``
+pragma should be used in addition to the ``exportc`` pragma. See
+`Dynlib pragma for export <#foreign-function-interface-dynlib-pragma-for-export>`_.
 
 
 Extern pragma
@@ -7363,10 +7366,7 @@ conjunction with the ``exportc`` pragma:
   proc exportme(): int {.cdecl, exportc, dynlib.}
 
 This is only useful if the program is compiled as a dynamic library via the
-``--app:lib`` command line option. This pragma only has an effect for the code
-generation on the Windows target, so when this pragma is forgotten and the dynamic
-library is only tested on Mac and/or Linux, there won't be an error. On Windows
-this pragma adds ``__declspec(dllexport)`` to the function declaration.
+``--app:lib`` command line option.