hi, 
I m trying to build the document loader which is available as cpp examples. I have configured the build environment by running the file setsdkenv_unix.sh file. Then I have run the command make from the cpp example folder. After that I got the following error. 
mkdir -p /apfcomm/release/openofficeoutput_rel//a... 
mkdir -p /apfcomm/release/openofficeoutput_rel//a... 
c++ -L/apfcomm/release/openofficeoutput_rel/... -L../../../solsparc/lib -L"/apfcomm/release/openoffice 
.org2.1/program" -o /apfcomm/release/openofficeoutput_rel//a... /apfcomm/release/openoffic 
eoutput_rel//apfcomm/release/openoffic... \ 
-luno_cppuhelperC52 -luno_cppu -luno_salhelperC52 -luno_sal -lstlport_sunpro /apfcomm/release/openofficeoutput_rel//a... 
RISexample.out/obj/DocumentLoader/Docu... In function `main': 
DocumentLoader.cxx:(.text+0xd8): undefined reference to `cppu::createSimpleRegistry(rtl::OUStrin... const%26amp;)' 
DocumentLoader.cxx:(.text+0x1c8): undefined reference to `cppu::bootstrap_InitialComponentContext... 
leRegistry%26gt; const%26amp;, rtl::OUString const%26amp;)' 
collect2: ld returned 1 exit status 
make: *** [/apfcomm/release/openofficeoutput_rel//... 
ut_rel/SOLARISexample.out/bin/Document... Error 1 
I didn't understand. What happening here ? could you please help on this and how to resolve this error ? moreover from my guessing i could see that lib directory inside openofficeSDK/solsparc/lib is not available , so that it could not get a link.(is my guessing correct), i m using c++ 4.3 compiler, whether solaris compiler need to be used.
Error needs to be solved?
Make sure the shared library that houses functions like reateSimpleRegistry is in the paths you specified by your -L switch.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment