Hi,
this is my fisrt post. I'm italian so, please, sorry for my english.
i'm trying to compile the program described here: https://wiki.openoffice.org/wiki/Calc/A ... pleteAddIn
This is my first experience with C++ and UNO Api.
I'm using Eclipse IDE and Mingw as compiler.
My goal is to create a DLL that i could copy under program folder to use, i hope also, with libreofficeportable.
At my last compilation i have only one error. Thi one:
------------------------------------------------------------------------------------------------------------------------------------
..\myTest.cpp:289:77: error: no matching function for call to 'my_sc_impl::MyService2Impl::MyService2Impl(const com::sun::uno::Reference<com::sun::uno::XComponentContext>&)'
return static_cast< ::cppu::OWeakObject * >( new MyService2Impl( xContext ) );
^
..\myTest.cpp:289:77: note: candidates are:
..\myTest.cpp:61:7: note: my_sc_impl::MyService2Impl::MyService2Impl()
class MyService2Impl : public ::cppu::WeakImplHelper5<
^
..\myTest.cpp:61:7: note: candidate expects 0 arguments, 1 provided
..\myTest.cpp:61:7: note: my_sc_impl::MyService2Impl::MyService2Impl(const my_sc_impl::MyService2Impl&)
..\myTest.cpp:61:7: note: no known conversion for argument 1 from 'const com::sun::uno::Reference<com::sun::uno::XComponentContext>' to 'const my_sc_impl::MyService2Impl&'
..\myTest.cpp: In member function 'virtual com::sun::lang::Locale my_sc_impl::MyService2Impl::getLocale()':
..\myTest.cpp:302:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
..\myTest.cpp: In function 'com::sun::uno::Reference<com::sun::uno::XInterface> my_sc_impl::create_MyService2Impl(const com::sun::uno::Reference<com::sun::uno::XComponentContext>&)':
..\myTest.cpp:290:1: warning: control reaches end of non-void function [-Wreturn-type]
}
------------------------------------------------------------------------------------------------------------------------------------
Now, if i have correctly figure out, seems that the method MyService2Impl don't manage XContent.
Surfing on web i don't find nothing that help me to fix it.
Someone of you have any idea on how i could fix this issue ?
Thanks in advance.
Error compiling C++ program "MyFirstAddIn"
Java, C++, C#, Delphi... - Using the UNO bridges
Jump to
- Getting started
- ↳ Survival guide
- ↳ Beginners
- ↳ Getting Started Guide for 4.x
- ↳ Getting Started Guide for 3.x
- ↳ Install, Setup and Troubleshooting
- ↳ Admin Guide
- ↳ MS Windows
- ↳ Linux
- ↳ Mac OSX
- ↳ LibreOffice
- ↳ Tablets
- ↳ Tutorials
- ↳ Writer
- ↳ Calc
- ↳ Base
- Applications
- ↳ Writer
- ↳ Writer Guide for 4.x
- ↳ Writer Guide for 3.x
- ↳ Writer Tutorials
- ↳ Templates
- ↳ Advanced Uses
- ↳ Calc
- ↳ Calc Guide for 4.x
- ↳ Calc Guide for 3.x
- ↳ Calc Functions
- ↳ Calc Tutorials
- ↳ Impress
- ↳ Impress Guide for 4.x
- ↳ Impress Guide for 3.x
- ↳ Draw
- ↳ Draw Guide for 4.x
- ↳ Draw Guide for 3.x
- ↳ Math
- ↳ Math Guide for 4.x
- ↳ Math Guide for 3.x
- ↳ Math Guide for 3.x
- ↳ Base
- ↳ Base Guide for 4.x
- ↳ Wiki
- ↳ Base Tutorials
- ↳ Tables & Queries
- ↳ Forms
- ↳ External Data Sources
- ↳ Reporting
- ↳ Database Examples
- Customizing and Extending
- ↳ Macros and UNO API
- ↳ Basic Guide
- ↳ Code Snippets
- ↳ Extension Repository
- ↳ Macro Repository
- ↳ External Programs
- ↳ Extensions
- ↳ Extensions page
- Community
- ↳ General Discussion
- ↳ Site Feedback
- ↳ Forum Governance
- ↳ User Experience (UX)
- ↳ Announcements
- Business
- ↳ Institutions & Educational
- ↳ Paid support
- ↳ Consultants Directory