Compile [C++] example on command line

Java, C++, C#, Delphi... - Using the UNO bridges
Post Reply
solven
Posts: 1
Joined: Tue Jul 19, 2016 5:39 pm

Compile [C++] example on command line

Post by solven »

There is a fine example on the following page which we would like to compile and run from the command-line on Ubuntu 14:
https://wiki.openoffice.org/wiki/Docume ... onnections

We've installed the SDK, run the setsdkenv script and now would like to compile on the command line like g++ main.cpp (where main.cpp contains the sample code). This however throws many errors (e.g. in the /usr/include/sal/*.h file). Is there a straightfoward way to do this? (E.g., are we missing a library?)
OpenOffice 4.1 on Ubuntu 14.04
hanya
Volunteer
Posts: 885
Joined: Fri Nov 23, 2007 9:27 am
Location: Japan

Re: Compile [C++] example on command line

Post by hanya »

Welcom to the forum.

You have to pass some flags to your compiler. See Makefile in the SDK examples and sdk/settings direcotry.
Please, edit this thread's initial post and add "[Solved]" to the subject line if your problem has been solved.
Apache OpenOffice 4-dev on Xubuntu 14.04
Post Reply