# Compilation error in Webviewer CacheManager.cpp

**URL:** https://discourse.orthanc-server.org/t/compilation-error-in-webviewer-cachemanager-cpp/1716
**Category:** Google Groups archive
**Created:** [November 28, 2019, 1:56pm UTC](https://discourse.orthanc-server.org/t/compilation-error-in-webviewer-cachemanager-cpp/1716 "2019-11-28T13:56:25Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Axel\_Braun1](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/a/71e660/32.png) [@Axel\_Braun1](https://discourse.orthanc-server.org/u/Axel_Braun1)
#### Post date: [November 28, 2019, 1:56pm UTC](https://discourse.orthanc-server.org/t/compilation-error-in-webviewer-cachemanager-cpp/1716/1 "2019-11-28T13:56:25Z")

</div>

Hi,

I run into a compilation error for the WebViewer Plugin:

```auto
[85s] In file included from /home/abuild/rpmbuild/BUILD/OrthancWebViewer-2.5/Plugin/Cache/CacheManager.cpp:22:
[85s] /home/abuild/rpmbuild/BUILD/OrthancWebViewer-2.5/Plugin/Cache/CacheManager.h:42:30: error: field 'pimpl_' has incomplete type 'boost::shared_ptr<OrthancPlugins::CacheManager::PImpl>'
[85s] 42 | boost::shared_ptr<PImpl> pimpl_;
[85s] | ^ ~~~~~
[85s] In file included from /usr/include/boost/throw_exception.hpp:36,
[85s] from /usr/include/boost/lexical_cast/bad_lexical_cast.hpp:28,
[85s] from /usr/include/boost/lexical_cast.hpp:31,
[85s] from /usr/src/orthanc/Resources/CMake/../../Core/SQLite/../Logging.h:60,
[85s] from /usr/src/orthanc/Resources/CMake/../../Core/SQLite/../OrthancException.h:37,
[85s] from /usr/src/orthanc/Resources/CMake/../../Core/SQLite/OrthancSQLiteException.h:152,
[85s] from /usr/src/orthanc/Resources/CMake/../../Core/SQLite/Statement.h:41,
[85s] from /usr/src/orthanc/Resources/CMake/../../Core/SQLite/Connection.h:40,
[85s] from /home/abuild/rpmbuild/BUILD/OrthancWebViewer-2.5/Plugin/Cache/CacheManager.h:24,
[85s] from /home/abuild/rpmbuild/BUILD/OrthancWebViewer-2.5/Plugin/Cache/CacheManager.cpp:22:
[85s] /usr/include/boost/exception/exception.hpp:15:44: note: declaration of 'class boost::shared_ptr<OrthancPlugins::CacheManager::PImpl>'
[85s] 15 | namespace boost { template <class T> class shared_ptr; }
[85s] | ^ ~~~~~~~~~
[85s] /home/abuild/rpmbuild/BUILD/OrthancWebViewer-2.5/Plugin/Cache/CacheManager.cpp: In member function 'OrthancPlugins::CacheManager::Bundle OrthancPlugins::CacheManager::GetBundle(int) const':
[85s] /home/abuild/rpmbuild/BUILD/OrthancWebViewer-2.5/Plugin/Cache/CacheManager.cpp:178:3: error: control reaches end of non-void function [-Werror=return-type]
[85s] 178 | }
[85s] | ^

Full log: https://build.opensuse.org/package/live_build_log/home:DocB:Orthanc/orthanc-webviewer/openSUSE_Tumbleweed/x86_64

Any hints?

Thx
Axel

```

---

<div class="post-metadata">

### Author: ![jodogne](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/jodogne/32/1511_2.png) [@jodogne](https://discourse.orthanc-server.org/u/jodogne)
#### Post date: [November 28, 2019, 2:06pm UTC](https://discourse.orthanc-server.org/t/compilation-error-in-webviewer-cachemanager-cpp/1716/2 "2019-11-28T14:06:23Z")

</div>

Hello,

Please could you have a try with the following patch?  
[https://bitbucket.org/sjodogne/orthanc-webviewer/commits/3aae28985514f10192874b242dcdeb1ba8a68228](https://bitbucket.org/sjodogne/orthanc-webviewer/commits/3aae28985514f10192874b242dcdeb1ba8a68228)

BR,  
Sébastien-

---

<div class="post-metadata">

### Author: ![Axel\_Braun1](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/a/71e660/32.png) [@Axel\_Braun1](https://discourse.orthanc-server.org/u/Axel_Braun1)
#### Post date: [November 28, 2019, 2:30pm UTC](https://discourse.orthanc-server.org/t/compilation-error-in-webviewer-cachemanager-cpp/1716/3 "2019-11-28T14:30:48Z")

</div>

Hi Sebastien,
