[omniORB] beginners problem with BCB

Lanctot, Benoit benoit.lanctot@nrc.ca
Wed, 21 Nov 2001 10:03:54 -0500


Hi Mihkail,

I add my problem because I just wanted to make the modification my program
to make it work.  I didn't want to start over my program based on your
example.  I check all the option in the Project option and they were all the
same.  But in the .bpr file (project file in Borland) I add the option -a8
inside of -a4, I change it and now I don't have the error any more.  I still
have some work to do before it compiling, but at lest a have a chance again
them (the bug) now...


Thank you very mush

Next time I will use your example to modify or start a new program.


Benoit

-----Original Message-----
From: m.soukhanov@geosys.ru [mailto:m.soukhanov@geosys.ru]
Sent: Wednesday, 21 November, 2001 7:20 AM
To: Lanctot, Benoit
Subject: Re: [omniORB] beginners problem with BCB


20.11.2001 20:06:44, "Lanctot, Benoit" <benoit.lanctot@nrc.ca> wrote:
>
>I did the echo example using the IDE and it work fine.  A try converting my
>VisiBroker program to omniORB but a get this message:
>
>[C++ Error] CORBA_sysdep_bcc32.h(71): E2471 pragma checkoption failed:
>options are not as expected

Hello, Benoit!

omniORB for BCC32 headers are written to check for three compiler options,
which should be set for omniORB libraries and programs to compile and work
properly. They are as follows:

-tWM -- enable multi-threading;

-a4 -- double word (4 bytes) data alignment;

-b -- treat enums as ints (that is enums are always 4 bytes size).

I do not remember exactly why all three are needed (except for the first --
omniORB is essentially multi-threaded) but that was the result of some
testing and experimentation. Also you should always link with run-time
standard libraries (as 
set in IDE project options page). In your .bpr file that means to have the
_RTLDLL macro in SYSDEFINES, and CW32MTI.LIB (or CP32MTI.LIB if you are
using VCL, but not any of other C?32???.LIBs) in ALLLIB parameter.

Best regards,
		Mikhail

Dr. Mikhail Soukhanov <mailto:m.soukhanov@geosys.ru.>

Laboratorija Geoinformatiki, VNIIgeosistem
Warszawskoje chaussee 8, Moskva M-105, 113105 Rossija
Tel.: +7(095) 954-21-50 (x101), fax.: +7(095) 958-35-22
W.W.W.: <http://www.geosys.ru./>