hossein@WINDOWS MINGW64 ~/example/build $ cmake .. -- Configuring done -- Generating done -- Build files have been written to: C:/msys64/home/hossein/example/build hossein@WINDOWS MINGW64 ~/example/build $ ninja [1/2] Building CXX object CMakeFiles/example.dir/main.cpp.obj In file included from C:/msys64/home/hossein/example/build/com/sun/star/beans/PropertyVetoException.hpp:8, from C:/msys64/home/hossein/example/build/com/sun/star/beans/XPropertySet.hpp:8, from C:/msys64/home/hossein/example/main.cpp:24: C:/msys64/home/hossein/example/build/com/sun/star/uno/Exception.hpp: In copy constructor ‘com::sun::star::uno::Exception::Exception(const com::sun::star::uno::Exception&)’: C:/msys64/home/hossein/example/build/com/sun/star/uno/Exception.hpp:54:108: warning: visibility attribute not supported in this configuration; ignored [-Wattributes] 54 | Exception::Exception(Exception const & the_other): Message(the_other.Message), Context(the_other.Context) {} | ^ C:/msys64/home/hossein/example/build/com/sun/star/uno/Exception.hpp: In destructor ‘com::sun::star::uno::Exception::~Exception()’: C:/msys64/home/hossein/example/build/com/sun/star/uno/Exception.hpp:56:26: warning: visibility attribute not supported in this configuration; ignored [-Wattributes] 56 | Exception::~Exception() {} | ^ [2/2] Linking CXX executable example.exe FAILED: example.exe cmd.exe /C "cd . && C:\msys64\usr\bin\c++.exe CMakeFiles/example.dir/main.cpp.obj -o example.exe -Wl,--out-implib,libexample.dll.a -Wl,--major-image-version,0,--minor-image-version,0 -LC:/Progra~1/LibreOffice/program -LC:/Progra~1/LibreOffice/sdk/lib -licppuhelper -lipurpenvhelper -licppu -lisalhelper -lisal -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 && cd ." /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: CMakeFiles/example.dir/main.cpp.obj:main.cpp:(.text+0x36): undefined reference to `cppu::bootstrap()' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed.