Re: OCI and GNU compiler

From: Scott Urman <surman_at_oracle.com>
Date: 1996/06/28
Message-ID: <4r12v2$4ri_at_inet-nntp-gw-1.us.oracle.com>#1/1


In article <4r0ilr$sik_at_decius.ultra.net>, dtrahan_at_tyler.ultranet.com (David Trahan) writes:
|> Richard Campbell <richard.campbell_at_mail.esrin.esa.it> wrote:
|>
|> >Dear All,
 

|> >Environment RDBMS 7.3 O/S Solaris 2.x
 

|> >We are planning to write some OCI interfaces to our database which will
|> >primarily make calls to Pl/SQL stored procedures.
|> >We were hoping to use the GNU C++ compiler, are there any compatibility
|> >problems with the oracle supplied libraries and the GNU compiler ?
 

|> >The reason behind using OCI is to make the debugging of what should be
|> >fairly simple calls easier. eg. no chunk of expanded C from the precompiler
|> >(and that the GNU compiler can be used)
 

|> >Has anybody had any good/bad experiences with this compiler and
|> >is the approach of using OCI really going to make life easier ?
|>
|>
|> I've used the gnu compiler with the OCI libraries on Solaris with no
|> problems whatsoever.
|>
|>
|>
|> Dave Trahan
|> dtrahan_at_ultranet.com
|>

Just keep in mind that the gnu compiler is not supported by Oracle. This doesn't mean that it won't work, but it does mean that Oracle hasn't tested it and makes no guarentees. If there is a problem that doesn't reproduce with the supported compiler on your platform (on Solaris it is the SparcWorks compiler) then you are on your own. Check the IGC for your platform and version to find the supported compiler (and the version of the supported compiler).

For example, on Solaris you can get an undefined symbol __cg92_used. If you are using the SparcWorks compiler, then you simply use the -xcg92 flag. But gcc has no such option. This is just one possible problem.

-- 
------------------------------------------------------------------------
Scott Urman            Oracle Corporation           surman_at_us.oracle.com
------------------------------------------------------------------------
Author of _Oracle PL/SQL Programming_ ISBN 0-07-882176-2
Published by Oracle Press - http://www.osborne.com/oracle/index.htm
------------------------------------------------------------------------
"The opinions expressed here are my own, and are not necessarily that of
 Oracle Corporation"
------------------------------------------------------------------------
Received on Fri Jun 28 1996 - 00:00:00 CEST

Original text of this message