c++ : preprocessor switches

Java, C++, C#, Delphi... - Using the UNO bridges
Post Reply
nmset
Posts: 12
Joined: Thu May 13, 2010 7:35 pm

c++ : preprocessor switches

Post by nmset »

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

Re: c++ : preprocessor switches

Post by hanya »

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.
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
nmset
Posts: 12
Joined: Thu May 13, 2010 7:35 pm

Re: c++ : preprocessor switches

Post by nmset »

Just started reading include/*, thank you so much !
Post Reply