Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Global namespace and OCI functions
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 toolReceived on Wed Mar 01 2006 - 13:14:07 CST
![]() |
![]() |