[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference pamsrc::objectbroker

Title:ObjectBroker - BEA Systems' CORBA
Notice:See note 3 for kits; note 5 for training; note 1134 for releases
Moderator:TLE::PARODId
Created:Tue Jul 11 1989
Last Modified:Thu Jun 05 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1413
Total number of notes:6391

1386.0. "QuickStart and Borland C++ Builder" by STKAI1::T_ANDERSSON (Tomas Andersson) Thu Mar 20 1997 11:32

 Having generated a C++ client and ditto server with OBB v2.7 QuickStart,
 we attempted to use the code with Borland's C++ Builder v1.0, but got
 the following linker error:

	[Linker Error] 'C:\WIN32APP\OBROKER\LIB\OBB32.LIB' contains
	invalid OMF record, type 0x21.

 When using MS Visual C++, everything works OK.

 The people at Borland say:

  << ObjectBroker works fine with MSVC++.
  << This is a static lib and the Object Format is different. Borland uses
  << OMF and MS uses COFF. The two are incompatible. See if the ObjectBroker
  << is available in Borland type Format or if it available as a DLL...

 My question, therefore, is whether OBB v2.7 does support Borland's C++/
 C++ Builder, or if it may do so in the future. GUI generation is very
 easy with Borland's tool, so it would be nice to be able to use it with
 OBB. 

 - Tomas Andersson -

T.RTitleUserPersonal
Name
DateLines
1386.1Yes, but you can rebuild for Borland!REQUE::whocrz.zko.dec.com::GumbelDick GumbelThu Mar 20 1997 13:0616
You are correct - the c++ support for ObjectBroker is based on
a static library built with Microsoft VC++. If you check out
section 10.8.4 in the 'Designing and Building Applications'
book (page 10-41), you will see a list of the supported
c++ compilers on each platform. That section also describes how
you can rebuild the OBB c++ static library with another compiler.

If you need to use Borland on NT or Win95, you can rebuild the
c++ static library as described in that section of the book.



   Dick Gumbel
   ObjectBroker development

1386.2REQUE::BOWERPeter Bower, ObjectBrokerTue Mar 25 1997 22:246
    I believe MSVC is the only supported compiler for NT. 
    
    obb32.lib is the .lib for the obb32.dll - I seem to remember you
    you can create a .lib from a .dll using a program (implib ?). You
    may be able to create a .lib that you can link against with Borland. 
    
1386.3EMNTAL::STADELMANNSepp @ZUO 760-2609Mon Apr 14 1997 07:2113
    the way how you can create a .LIB is described in one of the MSDN
    CDROM's. depending on many things, sometimes straigth forward and
    done in a few minutes, sometimes harder to resolvebut it can be done.
    
    Also my question, what are all the source files for under 
    
    .\LIB\CXXSRC
    
    can the full ORB LIB be rebuilt uing this library's make file for
    i.e. Borland C++, Can someone deliver a few hints. Just a bit more
    then what is in the docu. please.
    
    Sepp,
1386.4REQUE::BOWERPeter Bower, ObjectBrokerTue Apr 15 1997 07:4712
    
    The C++ binding pseudo object code is in an object library. If you need
    to rebuild the library for a different version of the compiler, then
    the documentation has the details. If you want to try to rebuild 
    the library with a different compiler, then it is much more difficult.
    
    cxxmakef.w32 is the makefile that is used to rebuild the library
    on NT. It is designed for the MSVC compiler. You might be able
    to take cxxmakef.win (designed for Borland on windows 3.1) and
    update it for Borland on NT. Look at the various options that
    cxxmakef.w32 is using and make sure the corresponding options in
    Borland are set.
1386.5EMNTAL::STADELMANNSepp @ZUO 760-2609Thu Apr 17 1997 06:471
    Peter Bower, thank you very much. Sepp