Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Global namespace and OCI functions

Re: Global namespace and OCI functions

From: Andy Hassall <andy_at_andyh.co.uk>
Date: Wed, 01 Mar 2006 19:14:07 +0000
Message-ID: <3dsb021ieqlh6aa63ag49afvlb4qa9m8g7@4ax.com>


On 1 Mar 2006 03:05:50 -0800, "Herode" <cbrun_at_geomapgis.com> wrote:

>You're right... :o)
>For ligne 155 ==
>::OCIDateGetDate( dt, &year, &month, &day );
>
>the error messages are :
>D:\Dev\CPP\testOCI\TestDynaset.cpp(155) : error C2589: '{' : illegal
>token on right side of '::'
>D:\Dev\CPP\testOCI\TestDynaset.cpp(155) : error C2143: syntax error :
>missing ';' before '::'
>D:\Dev\CPP\testOCI\TestDynaset.cpp(155) : error C2143: syntax error :
>missing ';' before '{'

 OCIDateGetDate is not a global function, it's a macro, see the definition in oci/include/orl.h. As a result, putting "::" in front of it causes syntax errors once it's been expanded.

-- 
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Received on Wed Mar 01 2006 - 13:14:07 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US