Hello,
To compile an application using the AOO API on linux, we have to pass the following switches to the compiler :
-DUNX -DGCC -DLINUX -DCPPU_ENV=gcc3
The resulting program does compile and run.
Although the OO documentation is extensive, I have not found one single place in the docs pointing out all usable switches. The avove ones have been found searching the web.
Can someone point out where these switches are listed and documented ?
Thank you.
c++ : preprocessor switches
Re: c++ : preprocessor switches
Read include/* files of the SDK. But these switches are not important for general user because they are used to know type of environment and used to choose basic value types.
Even if you change the switch for your code to compile with the SDK, the target office is compiled with the switch and your binary can not work with the office compiled with different switches.
Even if you change the switch for your code to compile with the SDK, the target office is compiled with the switch and your binary can not work with the office compiled with different switches.
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
Apache OpenOffice 4-dev on Xubuntu 14.04
Re: c++ : preprocessor switches
Just started reading include/*, thank you so much !