OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

[SOLVED]CPP compilation SDK2.4

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
jonpol
Newbie
Newbie


Joined: 22 Jan 2010
Posts: 3
Location: Tokyo-to Ome-shi

PostPosted: Fri Jan 22, 2010 12:26 am    Post subject: [SOLVED]CPP compilation SDK2.4 Reply with quote

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 Confused


Last edited by jonpol on Mon Jan 25, 2010 4:15 pm; edited 1 time in total
Back to top
View user's profile Send private message
hanya
Super User
Super User


Joined: 04 May 2005
Posts: 543
Location: Japan

PostPosted: Fri Jan 22, 2010 10:42 am    Post subject: Reply with quote

Add lacked include file:
Code:
#include <com/sun/star/lang/XMultiComponentFactory.hpp>

This problem has been fixed on a recent version.
Back to top
View user's profile Send private message
jonpol
Newbie
Newbie


Joined: 22 Jan 2010
Posts: 3
Location: Tokyo-to Ome-shi

PostPosted: Sat Jan 23, 2010 4:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
jonpol
Newbie
Newbie


Joined: 22 Jan 2010
Posts: 3
Location: Tokyo-to Ome-shi

PostPosted: Mon Jan 25, 2010 4:14 pm    Post subject: Reply with quote

Thank you very much... this really solved some but not all of my cpp example problems..

SOLVED!! Wink
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group