Compile [C++] example on command line

Java, C++, C#, Delphi, ??? - Using the UNO bridges

Compile [C++] example on command line

Postby solven » Tue Jul 19, 2016 6:01 pm

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
solven
 
Posts: 1
Joined: Tue Jul 19, 2016 5:39 pm

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

Postby hanya » Fri Jul 22, 2016 10:50 am

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
hanya
Volunteer
 
Posts: 881
Joined: Fri Nov 23, 2007 9:27 am
Location: Japan


Return to External Programs

Who is online

Users browsing this forum: No registered users and 2 guests