Skip to content

Commit

Permalink
[FIX] Solved linkage error
Browse files Browse the repository at this point in the history
Added 'inline' to the allocateDisplay without parameters to avoid multiple definition of the function
  • Loading branch information
LAGNEAU Romain committed Sep 4, 2024
1 parent af996bb commit f29cc46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gui/include/visp3/gui/vpDisplayFactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ vpDisplay *allocateDisplay(vpImage<T> &I, const int winx = -1, const int winy =
* \return A smart pointer pointing to a vpDisplay specialization
* if a GUI library is available or nullptr otherwise.
*/
std::shared_ptr<vpDisplay> createDisplay()
inline std::shared_ptr<vpDisplay> createDisplay()
{
#if defined(VISP_HAVE_DISPLAY)
#ifdef VISP_HAVE_X11
Expand Down

0 comments on commit f29cc46

Please sign in to comment.