| View previous topic :: View next topic |
| Author |
Message |
jonpol Newbie

Joined: 22 Jan 2010 Posts: 3 Location: Tokyo-to Ome-shi
|
Posted: Fri Jan 22, 2010 12:26 am Post subject: [SOLVED]CPP compilation SDK2.4 |
|
|
Im running on Debian Linux
Openoffice 2.4
Openoffice SDK 2.4
My problem concerns about when I'm compiling cpp's
cpp/Documentholder
ProfUNO/CppBinding
etc.
one example is this from ProfUNO/CppBinding
| Code: |
asdusr@debian:/usr/lib/openoffice/sdk/examples/DevelopersGuide/ProfUNO/CppBinding$ make
mkdir -p /home/asdusr/sdk/LINUXexample.out/obj/ProfUnoCppBinding
gcc -c -O -fpic -I. -I/home/asdusr/sdk/LINUXexample.out/inc/examples -I../../../../include -I/home/asdusr/sdk/LINUXexample.out/inc/ProfUnoCppBinding -DUNX -DGCC -DLINUX -DCPPU_ENV=gcc3 -DGXX_INCLUDE_PATH=/usr/include/c++/4.3 -o/home/asdusr/sdk/LINUXexample.out/obj/ProfUnoCppBinding/office_connect.o office_connect.cxx
office_connect.cxx: In function ‘int main()’:
office_connect.cxx:60: error: ‘XMultiComponentFactory’ was not declared in this scope
office_connect.cxx:60: error: template argument 1 is invalid
office_connect.cxx:60: error: invalid type in declaration before ‘=’ token
office_connect.cxx:61: error: invalid use of incomplete type ‘struct com::sun::star::uno::XComponentContext’
../../../../include/cppuhelper/bootstrap.hxx:58: error: forward declaration of ‘struct com::sun::star::uno::XComponentContext’
office_connect.cxx:65: error: base operand of ‘->’ is not a pointer
make: *** [/home/asdusr/sdk/LINUXexample.out/obj/ProfUnoCppBinding/office_connect.o] エラー 1
|
I don't exactly know whats the problem but I have a feeling that it was something about my c++ compiler..
I have no problem with other SDK examples.. It's just with these CPP's.
Please if someone who is knowledgable or have gone through with this error.. please help me 
Last edited by jonpol on Mon Jan 25, 2010 4:15 pm; edited 1 time in total |
|
| Back to top |
|
 |
hanya Super User

Joined: 04 May 2005 Posts: 543 Location: Japan
|
Posted: Fri Jan 22, 2010 10:42 am Post subject: |
|
|
Add lacked include file:
| Code: | | #include <com/sun/star/lang/XMultiComponentFactory.hpp> |
This problem has been fixed on a recent version. |
|
| Back to top |
|
 |
jonpol Newbie

Joined: 22 Jan 2010 Posts: 3 Location: Tokyo-to Ome-shi
|
Posted: Sat Jan 23, 2010 4:54 pm Post subject: |
|
|
Thank you very much for your fast reply ^^ I'm going to try it as soon as i get into my Debianパソコン (really prefered ubuntu though) at my office on monday(tomorrow).
Also i think debian systems can't go past openoffice 2.4 or something.. That's why i have no choice but to stick with oosdk 2.4 . |
|
| Back to top |
|
 |
jonpol Newbie

Joined: 22 Jan 2010 Posts: 3 Location: Tokyo-to Ome-shi
|
Posted: Mon Jan 25, 2010 4:14 pm Post subject: |
|
|
Thank you very much... this really solved some but not all of my cpp example problems..
SOLVED!!  |
|
| Back to top |
|
 |
|