glab <[email protected]> writes:

> #+NAME: A
> #+BEGIN_SRC emacs-lisp :file iamge.png
> #+END_SRC
> #+CAPTION: Some text
> #+NAME: B
> #+RESULTS: A
> [[file:image.png]]
>
> A reference to image [[B]].
> ...
> When exporting the document, I get the error message:
>    org-export-data: Org export aborted.  Unable to resolve link: "B"
>
> This error occurs only when the RESULTS keyword references the name "A" 
> (that is, the name of the code block).

Try M-x org-lint.
What is most likely happening is that you are using the default :exports
code. Thus, your results of evaluation are excluded from the exported
document. So, reference [[B]] indeed points to nowhere and Org is
correctly pointing that link "B" cannot be resolved.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to