SunStudio 12 Fails to compile template function with template argument

Hi
Look at the code below:
#include <iostream>
template<class InIt, class OutIt>
InIt copy_n(InIt first,  typename  std::iterator_traits<InIt>::difference_type  length, OutIt dest)
   for (;length--; ++dest, ++first)
      *dest = *first;
   return first;
int main()
        char str1[]="Sumit";
        char str2[20];
        copy_n(str1,6,str2);
        std::cout << str2;
        return 0;
}I have simplified this to pin point the problem, This code dosent compile with SunStudio12 C++ Compiler, (however this works fine on g++ and vc++). The problem is with second parameter
typename std::iterator_traits<InIt>::difference_type  lengthinstead if we specify any simple type as below, it works fine
int lengthSuns "http://developers.sun.com/sunstudio/documentation/ss12/whatsnew.html" says :
Support for the following open-source libraries:
BOOST http://www.boost.org
The above code snippet is picked from "boost/boost_1_35_0/boost/interprocess/detail/algorithms.hpp" line number 65.
Any Suggestions or work arounds??+
The above Suns link also says:
Complex expressions in template parameters.
The compiler was previously unable to handle expressions in non-type template arguments in certain cases.
I did not use any compilation flag, am I missing something?
Edited by: sumitkumar on May 20, 2008 12:20 PM
Edited by: sumitkumar on May 20, 2008 12:25 PM
Edited by: sumitkumar on May 20, 2008 12:25 PM

>
Suns "http://developers.sun.com/sunstudio/documentation/ss12/whatsnew.html" says :
Support for the following open-source libraries:
BOOST http://www.boost.org
Boost 1.34.1 should work OK. I haven't tried Boost 1.35 yet.
The above code snippet is picked from "boost/boost_1_35_0/boost/interprocess/detail/algorithms.hpp" line number 65.
Any Suggestions or work arounds??+
The above Suns link also says:
Complex expressions in template parameters.
The compiler was previously unable to handle expressions in non-type template arguments in certain cases.
I did not use any compilation flag, am I missing something?
Make sure that you compile and link with -library=stlport4, otherwise you will be limited in the Boost libraries that you will be able to use.
Paul

Similar Messages

  • GGobi fails to compile, wrong function calls in graphviz.c

    Hi there,
    I'm having troubles to makepkg ggobi, where make fails due to the below pasted errors.
    I am on a 64-bit system (a MacBook I put Arch on), not sure if that is relevant.
    Does anyone have an idea what is wrong here?
    Thanks,
    Alex
    graphviz.c: In function 'dot_neato_layout_cb':
    graphviz.c:215:3: error: too few arguments to function 'aginit'
    aginit();
    ^
    In file included from /usr/include/graphviz/types.h:49:0,
    from /usr/include/graphviz/gvc.h:17,
    from graphviz.c:16:
    /usr/include/graphviz/cgraph.h:359:13: note: declared here
    extern void aginit(Agraph_t * g, int kind, char *rec_name, int rec_size,
    ^
    graphviz.c:220:3: error: incompatible type for argument 2 of 'agopen'
    graph = agopen("graph", kind);
    ^
    In file included from /usr/include/graphviz/types.h:49:0,
    from /usr/include/graphviz/gvc.h:17,
    from graphviz.c:16:
    /usr/include/graphviz/cgraph.h:266:18: note: expected 'Agdesc_t' but argument is of type 'gint'
    extern Agraph_t *agopen(char *name, Agdesc_t desc, Agdisc_t * disc);
    ^
    graphviz.c:220:3: error: too few arguments to function 'agopen'
    graph = agopen("graph", kind);
    ^
    In file included from /usr/include/graphviz/types.h:49:0,
    from /usr/include/graphviz/gvc.h:17,
    from graphviz.c:16:
    /usr/include/graphviz/cgraph.h:266:18: note: declared here
    extern Agraph_t *agopen(char *name, Agdesc_t desc, Agdisc_t * disc);
    ^
    graphviz.c:226:5: error: too few arguments to function 'agnode'
    agnode(graph, name);
    ^
    In file included from /usr/include/graphviz/types.h:49:0,
    from /usr/include/graphviz/gvc.h:17,
    from graphviz.c:16:
    /usr/include/graphviz/cgraph.h:280:18: note: declared here
    extern Agnode_t *agnode(Agraph_t * g, char *name, int createflag);
    ^
    graphviz.c:248:7: error: too few arguments to function 'agedge'
    edge = agedge(graph, tail, head);
    ^
    In file included from /usr/include/graphviz/types.h:49:0,
    from /usr/include/graphviz/gvc.h:17,
    from graphviz.c:16:
    /usr/include/graphviz/cgraph.h:291:18: note: declared here
    extern Agedge_t *agedge(Agraph_t * g, Agnode_t * t, Agnode_t * h,
    ^
    graphviz.c:285:36: error: 'Agnode_t' has no member named 'name'
    agsafeset (graph, "root", ctr->name, NULL);
    ^
    graphviz.c:315:13: warning: assignment makes pointer from integer without a cast [enabled by default]
    sym = agfindattr(graph,"dim");
    ^
    graphviz.c:317:15: warning: assignment makes pointer from integer without a cast [enabled by default]
    sym = agraphattr(graph,"dim","");
    ^
    graphviz.c:319:26: error: 'attrsym_t' has no member named 'index'
    agxset(graph, sym->index, buf);
    ^
    graphviz.c:354:11: error: 'Agnode_t' has no member named 'u'
    node->u.width = node->u.height = .001;
    ^
    graphviz.c:354:27: error: 'Agnode_t' has no member named 'u'
    node->u.width = node->u.height = .001;
    ^
    Makefile:393: recipe for target 'plugin_la-graphviz.lo' failed
    make[3]: *** [plugin_la-graphviz.lo] Error 1

    >
    Suns "http://developers.sun.com/sunstudio/documentation/ss12/whatsnew.html" says :
    Support for the following open-source libraries:
    BOOST http://www.boost.org
    Boost 1.34.1 should work OK. I haven't tried Boost 1.35 yet.
    The above code snippet is picked from "boost/boost_1_35_0/boost/interprocess/detail/algorithms.hpp" line number 65.
    Any Suggestions or work arounds??+
    The above Suns link also says:
    Complex expressions in template parameters.
    The compiler was previously unable to handle expressions in non-type template arguments in certain cases.
    I did not use any compilation flag, am I missing something?
    Make sure that you compile and link with -library=stlport4, otherwise you will be limited in the Boost libraries that you will be able to use.
    Paul

  • Failed in compiling template:/application/test.jsp NULL

    Hi All,
    I am getting error while running a JSP. Its is working on my local box but giving error running on other box. The error is as below:
    Exception: SERVLET -compile_failed: Failed in compling template:/application/test.jsp <NULL>
    Exception Stack Trace:
    java.lang.NullPointerException
    at java.util.Hashtable.get(Complied Code)
    at com.netscape.server.servlet.jsp.JSPMap.uriToLocalizedURI(compied code)
    at com.netscape.jsp.KSP.resolvedLocalizedName(Complied code).
    Could anyone plese give pointer where to look.
    Thanks
    M

    Hi,
    Servlet compile failed means that jaxp.jar and jasper.jar are not present in the classpath variable. Please provide more information to solve your issue. The following information would help.
    - Where is iAS/web server installed ? is it in the "local" box or in the "other" box or at both ?
    - Where is the application deployed ? is it again in the "local" or "other" box ?
    - What is the URL you provided to access the test.jsp
    - What does the application server's classpath and the system classpath have in them ?
    Thanks & Regards
    Ganesh .R
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support

  • How to register PL/SQL function with Varchar2 argument in Discoverer

    Hi,
    I have registered a PL/SQL function in Discoverer Administrator 10.1.2.1. Function has two arguments with data type varchar2. In discoverer I've selected varchar as it doesn't have varchar2.
    When i use this function in report using discoverer desktop it gives an error "One of the function argument has an incorrect datatype.
    I would appreciate if somebody can help
    Regards
    BA

    Hi,
    First, do not wait to use it in order to check it.
    In the discoverer admin you can "Validate" the function on after registering it.
    there are couple of things you should know about registering the function:
    1. the "Varchar" option you selected is correct (there is no varchar2 in the admin definition).
    2. check the database function to verify that you indeed registered all its arguments and they match the names and types of the db function.
    3. during the registration, type everything in UPPER CASE.
    the other way to register the function (and you will not need to deal with the definition of it) is to search for the function in a list.
    in order to do that, on the register function screen press the "Import" button (on the bottom right side of screen).
    then search by the owner (db user / schema) that the function / package is registered.
    Tamir

  • Failed to compile invoke.c with bcc32.exe

    tried to compile the invoke.c(from java tutorial) using the following command but failed.
    D:\code>bcc32 -Ic:\Borland\Bcc55\include;D:\java\j2sdk1.3.1_03\include;D:\java\j2sdk1.3.1_03\include\win32 -LD:\java\j2sdk1.3.1_03\lib\jvm.lib;D:\java\j2sdk1.3.1_03\lib;c:\Borland\Bcc55\lib -tWM invoke.c
    Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
    Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
    Error: Unresolved external 'JNI_GetDefaultJavaVMInitArgs' referenced from D:\COD
    E\OC\SRC\INVOKE.OBJ
    any idea?
    environment : win2000, j2sdk
    thx
    #include <jni.h>
    #ifdef _WIN32
    #define PATH_SEPARATOR ';'
    #else /* UNIX */
    #define PATH_SEPARATOR ':'
    #endif
    #define USER_CLASSPATH "." /* where Prog.class is */
    main() {
    JavaVMInitArgs vm_args1;
    JavaVMOption options[4];
    JNIEnv *env;
    JavaVM *jvm;
    JDK1_1InitArgs vm_args;
    jint res;
    jclass cls;
    jmethodID mid;
    jstring jstr;
    jobjectArray args;
    char classpath[1024];
    /* IMPORTANT: specify vm_args version # if you use JDK1.1.2 and beyond */
    vm_args.version = JNI_VERSION_1_2;
    //JNI_GetDefaultJavaVMInitArgs((void **)&vm_args);
    /* Append USER_CLASSPATH to the end of default system class path */
    sprintf(classpath, "%s%c%s",
    vm_args.classpath, PATH_SEPARATOR, USER_CLASSPATH);
    vm_args.classpath = classpath;
    options[0].optionString = "-Djava.compiler=NONE"; /* disable JIT */
    options[1].optionString = "-Djava.class.path=c:\myclasses"; /* user classes */
    options[2].optionString = "-Djava.library.path=c:\mylibs"; /* set native library path */
    options[3].optionString = "-verbose:jni"; /* print JNI-related messages */
    vm_args1.version = JNI_VERSION_1_2;
    vm_args1.options = options;
    vm_args1.nOptions = 4;
    //vm_args1.ignoreUnrecognized = TRUE;
    /* Note that in the Java 2 SDK, there is no longer any need to call
    * JNI_GetDefaultJavaVMInitArgs.
    //res = JNI_CreateJavaVM(&jvm, (void **)&env, &vm_args1);
    JNI_GetDefaultJavaVMInitArgs(&vm_args);
    /* Create the Java VM */
    //res = JNI_CreateJavaVM(&jvm,(void **)&env,(void **)&vm_args);
    if (res < 0) {
    fprintf(stderr, "Can't create Java VM\n");
    exit(1);
    cls = (*env)->FindClass(env, "HelloWorld");
    if (cls == 0) {
    fprintf(stderr, "Can't find HelloWorld class\n");
    exit(1);
    mid = (*env)->GetStaticMethodID(env, cls, "main", "([Ljava/lang/String;)V");
    if (mid == 0) {
    fprintf(stderr, "Can't find HelloWorld.main\n");
    exit(1);
    jstr = (*env)->NewStringUTF(env, " from C!");
    if (jstr == 0) {
    fprintf(stderr, "Out of memory\n");
    exit(1);
    args = (*env)->NewObjectArray(env, 1,
    (*env)->FindClass(env, "java/lang/String"), jstr);
    if (args == 0) {
    fprintf(stderr, "Out of memory\n");
    exit(1);
    (*env)->CallStaticVoidMethod(env, cls, mid, args);
    (*jvm)->DestroyJavaVM(jvm);

    You need to either link with the target JVM library (jvm.lib) or use LoadLibrary() + GetProcAddress() + function pointers.

  • Call function with select arguments

    Hi Gurus,
    I have problem to call function inside select statements as follow:
    select a.ID_ELE2, a.ID_ELE3, a.DT_FIS_YR, c.NU_FIS_PER, c.dt,
    (case
    when c.ld is null then
    GET_LD_CHECK (a.DT_FIS_YR,c.NU_FIS_PER, a.ID_ELE3, a.ID_ELE2) -- 1
    -- GET_LD_CHECK ('2009',7, '8010', '7493') --- 2
    else
    c.ld
    end ) description
    from ACCOUNT a, TRANSACTION c
    where a.DT_FIS_YR ='2009'
    and a.ID_ELE3 <> '0000'
    and c.TY_SRC not in ('CL', 'CN')
    and a.DT_FIS_YR = c.nu_fis_yr
    and a.AK = c.AK_FGCHAR
    and trim(a.ID_ELE3) ='8010'
    and c.NU_FIS_PER <> 14
    order by 1,4,5,6
    the 1 doesn't output result but the 2 it does! How can pass the select result to the function?
    Thanks in advance for your help.
    Ben

    The statement / function call seems to be ok. So there are not much chances left for your call to return different (=non) values.
    1) It could be that you have different values in the column then during your test call.
    2) Maybe your function raises an error and that error is supressed in some ugly WHEN OTHERS EXCEPTION => Solution: Get rid of the error handler.
    3) datatype conversion. For example if a.dt_fis_yr is a number value, then you should test with number values and not with strings. GET_LD_CHECK (2009,7, '8010', '7493'). Same logic goes for the other paramters, make sure the datatype is correct and matches the function parameter.

  • VBA Function with Range Argument passed to Excel Solver

    I set up a function to run solver with some specific cells but solver seems not to receive the inputs. I consider the arguments as ranges passed by ByVal and ByRef with no success. The solver has already been done directly in the spreadsheet so the problem
    has a solution.
    Function Garch(control As Boolean, ByRef MyArg As Range, ByRef LogL As Range) As String
    If control = True Then
        Worksheets("Garch").Activate
        SolverOkDialog setCell:=LogL, MaxMinVal:=1, byChange:=MyArg
        SolverAdd cellRef:=persistence, relation:=1, formulaText:=0.9999
        SolverSolve userFinish:=False
        Garch = "Done"
        Else
        Garch = "Not Done"
    End If
    End Function

    Andreas,
    I liked the concept but I need to loop through columns instead of rows, I tried unsuccessfully the code below, any suggestions?
    Sub MacroX()
      Dim i As Long
      Dim j As Long
        For i = 3 To 3
        j = i * 4 + 2
        SolverReset
        SolverOk SetCell:=Range(Cells(12, j)), MaxMinVal:=1, ByChange:=Range(Cells(3, j), Cells(7, j)), Engine:=1, EngineDesc:="GRG Nonlinear"
        SolverAdd cellRef:=Range(Cells(6, j)), relation:=1, formulaText:=0.9999
        SolverSolve userFinish:=True
      Next
    End Sub

  • How to call function with varray arguments .

    Hi,
    I've got function like this:
    CREATE OR REPLACE
    TYPE VARR_VARCHAR AS VARRAY(256) OF NVARCHAR2(500)
    CREATE OR REPLACE
    TYPE E_VARR_VARCHAR AS VARRAY(256) OF nVARCHAR2(4096)
    FUNCTION find_id(
          p_id            IN   VARCHAR2,
          p_special_columns     IN   varr_varchar,
          p_special_values      IN   e_varr_varchar,
          RETURN VARCHAR2;How can I construct call to that function (nvarchar datatype is a need) using only pl/sql and can I do that with pure sql like select f() from dual; ?
    I'm on 9.2.0.8 .
    Regards
    GregG

    select find_id (p_id,VARR_VARCHAR('1','2','3'),e_varr_varchar('1','2','3')) from dual;
    --sty.                                                                                                                                                                                               

  • Event Handlers which trigger functions with multiple arguments

    I am playing two video clips back to back. I have a few
    things which I need to do in between clips, so what I am doing for
    each is adding a handler for VideoEvent.COMPLETE, at which time i
    want to call a function which takes multiple arguments, like this:
    video.addEventListener(VideoEvent.COMPLETE,
    myFunction("1","2","3"));
    private function myFunction(var1:String, var2:String,
    var3:String):void
    video.removeEventListeners(VideoEvent.COMPLETE, myFunction);
    I've already figured out that getting rid of event handlers
    that trigger anonymous functions is impossible. Please don't tell
    me that it's impossible to remove them if functions require more
    than 0 arguments...

    "muskiemania" <[email protected]> wrote in
    message
    news:gc0pk0$jfb$[email protected]..
    >I am playing two video clips back to back. I have a few
    things which I need
    >to
    > do in between clips, so what I am doing for each is
    adding a handler for
    > VideoEvent.COMPLETE, at which time i want to call a
    function which takes
    > multiple arguments, like this:
    >
    > video.addEventListener(VideoEvent.COMPLETE,
    myFunction("1","2","3"));
    >
    > private function myFunction(var1:String, var2:String,
    var3:String):void
    > {
    > video.removeEventListeners(VideoEvent.COMPLETE,
    myFunction);
    > }
    >
    > I've already figured out that getting rid of event
    handlers that trigger
    > anonymous functions is impossible. Please don't tell me
    that it's
    > impossible to
    > remove them if functions require more than 0
    arguments...
    Any function that you add via addEventListener should expect
    exactly ONE
    argument, the event. And 99.958% of the time, you can take
    that event
    object and figure out exactly what you need to know.
    HTH;
    Amy

  • Overloading a DATE function with TIMESTAMP to avoid "too many declarations"

    CREATE OR REPLACE PACKAGE util
    AS
      FUNCTION yn (bool IN BOOLEAN)
        RETURN CHAR;
      FUNCTION is_same(a varchar2, b varchar2)
        RETURN BOOLEAN;
      FUNCTION is_same(a date, b date)
        RETURN BOOLEAN;
      /* Oracle's documentation says that you cannot overload subprograms
       * that have the same type family for the arguments.  But,
       * apparently timestamp and date are in different type families,
       * even though Oracle's documentation says they are in the same one.
       * If we don't create a specific overloaded function for timestamp,
       * and for timestamp with time zone, we get "too many declarations
       * of is_same match" when we try to call is_same for timestamps.
      FUNCTION is_same(a timestamp, b timestamp)
        RETURN BOOLEAN;
      FUNCTION is_same(a timestamp with time zone, b timestamp with time zone)
        RETURN BOOLEAN;
      /* These two do indeed cause problems, although there are no errors when we compile the package.  Why no errors here? */
      FUNCTION is_same(a integer, b integer) return boolean;
      FUNCTION is_same(a real, b real) return boolean;
    END util;
    CREATE OR REPLACE PACKAGE BODY util
    AS
         NAME: yn
         PURPOSE: pass in a boolean, get back a Y or N
      FUNCTION yn (bool IN BOOLEAN)
        RETURN CHAR
      IS
      BEGIN
        IF bool
        THEN
          RETURN 'Y';
        END IF;
        RETURN 'N';
      END yn;
         NAME: is_same
         PURPOSE: pass in two values, get back a boolean indicating whether they are
                  the same.  Two nulls = true with this function.
      FUNCTION is_same(a in varchar2, b in varchar2)
        RETURN BOOLEAN
      IS
        bool boolean := false;
      BEGIN
        IF a IS NULL and b IS NULL THEN bool := true;
        -- explicitly set this to false if exactly one arg is null
        ELSIF a is NULL or b IS NULL then bool := false;
        ELSE bool := a = b;
        END IF;
        RETURN bool;
      END is_same;
      FUNCTION is_same(a in date, b in date)
        RETURN BOOLEAN
      IS
        bool boolean := false;
      BEGIN
        IF a IS NULL and b IS NULL THEN bool := true;
        -- explicitly set this to false if exactly one arg is null
        ELSIF a is NULL or b IS NULL then bool := false;
        ELSE bool := a = b;
        END IF;
        RETURN bool;
      END is_same;
      FUNCTION is_same(a in timestamp, b in timestamp)
        RETURN BOOLEAN
      IS
        bool boolean := false;
      BEGIN
        IF a IS NULL and b IS NULL THEN bool := true;
        -- explicitly set this to false if exactly one arg is null
        ELSIF a is NULL or b IS NULL then bool := false;
        ELSE bool := a = b;
        END IF;
        RETURN bool;
      END is_same;
      FUNCTION is_same(a in timestamp with time zone, b in timestamp with time zone)
        RETURN BOOLEAN
      IS
        bool boolean := false;
      BEGIN
        IF a IS NULL and b IS NULL THEN bool := true;
        -- explicitly set this to false if exactly one arg is null
        ELSIF a is NULL or b IS NULL then bool := false;
        ELSE bool := a = b;
        END IF;
        RETURN bool;
      END is_same;
      /* Don't bother to fully implement these two, as they'll just cause errors at run time anyway */
      FUNCTION is_same(a integer, b integer) return boolean is begin return false; end;
      FUNCTION is_same(a real, b real) return boolean is begin return false; end;
    END util;
    declare
    d1 date := timestamp '2011-02-15 13:14:15';
    d2 date;
    t timestamp := timestamp '2011-02-15 13:14:15';
    t2 timestamp;
    a varchar2(10);
    n real := 1;
    n2 real;
    begin
    dbms_output.put_line('dates');
    dbms_output.put_line(util.yn(util.is_same(d2,d2) ));
    dbms_output.put_line(util.yn(util.is_same(d1,d2) ));
    dbms_output.put_line('timestamps'); -- why don't these throw exception?
    dbms_output.put_line(util.yn(util.is_same(t2,t2) ));
    dbms_output.put_line(util.yn(util.is_same(t,t2) ));
    dbms_output.put_line('varchars');
    dbms_output.put_line(util.yn(util.is_same(a,a)));
    dbms_output.put_line(util.yn(util.is_same(a,'a')));
    dbms_output.put_line('numbers');
    -- dbms_output.put_line(util.yn(util.is_same(n,n2))); -- this would throw an exception
    end;
    /Originally, I had just the one function with VARCHAR2 arguments. This failed to work properly because when dates were passed in, the automatic conversion to VARCHAR2 was dropping the timestamp. So, I added a 2nd function with DATE arguments. Then I started getting "too many declarations of is_same exist" error when passing TIMESTAMPs. This made no sense to me, so even though Oracle's documentation says you cannot do it, I created a 3rd version of the function, to handle TIMESTAMPS explicitly. Surprisingly, it works fine. But then I noticed it didn't work with TIMESTAMP with TIME ZONEs. Hence, the fourth version of the function. Oracle's docs say that if your arguments are of the same type family, you cannot create an overloaded function, but as the example above shows, this is very wrong.
    Lastly, just for grins, I created the two number functions, one with NUMBER, the other with REAL, and even these are allowed - they compile. But then at run time, it fails. I'm really confused.
    Here is the apparently incorrect Oracle documentation on the matter: http://docs.oracle.com/cd/B12037_01/appdev.101/b10807/08_subs.htm (see overloading subprogram names), and here are the various types and their families: http://docs.oracle.com/cd/E11882_01/appdev.112/e17126/predefined.htm.
    Edited by: hotwater on Jan 9, 2013 3:38 PM
    Edited by: hotwater on Jan 9, 2013 3:46 PM

    >
    So, I added a 2nd function with DATE arguments. Then I started getting "too many declarations of is_same exist" error when passing TIMESTAMPs. This made no sense to me
    >
    That is because when you pass a TIMESTAMP Oracle cannot determine whether to implicitly convert it to VARCHAR2 and use your first function or implicitly convert it to DATE and use your second function. Hence the 'too many declarations' exist error.
    >
    , so even though Oracle's documentation says you cannot do it, I created a 3rd version of the function, to handle TIMESTAMPS explicitly. Surprisingly, it works fine. But then I noticed it didn't work with TIMESTAMP with TIME ZONEs.
    >
    Possibly because of another 'too many declarations' error? Because now there would be THREE possible implicit conversions that could be done.
    >
    Hence, the fourth version of the function. Oracle's docs say that if your arguments are of the same type family, you cannot create an overloaded function, but as the example above shows, this is very wrong.
    >
    I think the documentation, for the 'date' family, is wrong as you suggest. For INTEGER and REAL the issue is that those are ANSI data types and are really the same Oracle datatype; they are more like 'aliases' than different datatypes.
    See the SQL Language doc
    >
    ANSI, DB2, and SQL/DS Datatypes
    SQL statements that create tables and clusters can also use ANSI datatypes and datatypes from the IBM products SQL/DS and DB2. Oracle recognizes the ANSI or IBM datatype name that differs from the Oracle Database datatype name. It converts the datatype to the equivalent Oracle datatype, records the Oracle datatype as the name of the column datatype, and stores the column data in the Oracle datatype based on the conversions shown in the tables that follow.
    INTEGER
    INT
    SMALLINT
    NUMBER(38)
    FLOAT (Note b)
    DOUBLE PRECISION (Note c)
    REAL (Note d)
    FLOAT(126)
    FLOAT(126)
    FLOAT(63)

  • Compiler error with default arguments and static template function

    Hi 
    The following does not compile with visual studio 2010 sp1, and compiles with gcc.
    #include <string>
    class A
    public:
       template<class T>
       static T& Get(const std::wstring&);
    class B
     public:
      void f(
        double d,
        double c =A::Get<double>(L"test"));
    int main()
        B b;
        b.f(5);
    It gives me the following error 
    error C2783: 'T & A::Get(const wchar_t *)' : could not deduce template argument for 'T'
    If I change Get to be global function and not static function of A, it compiles.

    It seems to be a compiler bug.  It fails in VS2012, but compiles in VS2013.
    For completion sake, the problem exists if A is a namespace containing Get.  But not if Get is global.
    The only solutions I can see are try to workaround the problem (make Get global) or upgrade to a newer version of VS.

  • Trying to get Photoshop CS4 functional with Mavericks and an Epson 3880 printer. CS4 fails to send a file to the print queue. Have reinstalled the Epson 3880 driver for Mavericks. All looks good but no file is sent.

    rying to get Photoshop CS4 functional with Mavericks and an Epson 3880 printer. CS4 fails to send a file to the print queue. Have reinstalled the Epson 3880 driver for Mavericks. All looks good but no file is sent.
    Does anyone know how to fix this?

    What EXACT version of Photoshop CS4 are you running?  You should be on Photoshop CS4 v 11.0.2.
    Also run Apple's software update to see whether it offers you the latest Epson update:
    Printer Driver v9.33
    Epson Stylus Pro 3880, Drivers & Downloads - Technical Support - Epson America, Inc.
    MOST IMPORTANTLY:  have Photoshop re-create its own Preferences:
    To re-create the preferences files for Photoshop, start the application while holding down Ctrl+Alt+Shift (Windows) or Command+Option+Shift (Mac OS). Then, click Yes to the message, "Delete the Adobe Photoshop Settings file?"
    Note: If this process doesn't work for you while you're using a wireless (Bluetooth) keyboard, attach a wired keyboard and retry.
    Important: If you re-create the preferences by manually deleting the Adobe Photoshop CS6 Settings file, make sure that you only delete that file. If you delete the entire settings folder, you also delete any unsaved actions or presets.
    Reinstalling Photoshop does not remove the preferences file. Before reinstalling Photoshop, re-create your preferences.
    NEW Video! Julieanne Kost created a video that takes you through two ways of resetting your Photoshop preferences. The manual preference file removal method is between 0:00 - 5:05. The keyboard shortcut method is between 5:05 - 8:18. The video is located here:
    How to Reset Photoshop CS6’s Preferences File | The Complete Picture with Julieanne Kost | Adobe TV
    Mac OS
    Important: Apple made the user library folder hidden by default with the release of Mac OS X 10.7. If  you require access to files in the hidden library folder to perform Adobe-related troubleshooting, see How to access hidden user library files.

  • SSIS Job is getting failed with an error "0x00000005 : Failed to compiled scripts contained in the package.

    Hi All. Could anyone resolve my issue.
    I was created a package with an Script task written in VB.Net.
    The Package was executing Successfully in BIDS.
    But when i tried to exceute the same using Sql server Agent Job, Its getting Failed with the below error message
    "Executed as user: Admin. Microsoft (R) SQL Server Execute Package Utility  Version 11.0.2100.60 for 32-bit  Copyright (C) Microsoft Corporation. All rights reserved.    Started:  5:12:27 PM  Error: 2013-03-13 17:12:32.33    
    Code: 0x00000005     Source: Checking Alcon Files Checking Alcon Files     Description: Failed to compiled scripts contained in the package. Open the package in SSIS Designer and resolve the compilation errors. 
    End Error  Error: 2013-03-13 17:12:32.33     Code: 0x00000005     Source: Checking Alcon Files Checking Alcon Files     Description: BC30179 - enum 'ScriptResults' and enum 'ScriptResults' conflict
    in class 'ScriptMain'., ScriptMain.vb, 156, 22  End Error  Error: 2013-03-13 17:12:32.36     Code: 0x00000005     Source: Checking Alcon Files Checking Alcon Files     Description: The binary
    code for the script is not found. Please open the script in the designer by clicking Edit Script button and make sure it builds successfully.  End Error  Error: 2013-03-13 17:12:34.28     Code: 0x00000005    
    Source: Formating Excel Sheet Formating Excel Sheet     Description: Failed to compiled scripts contained in the package. Open the package in SSIS Designer and resolve the compilation errors.  End Error  Error: 2013-03-13 17:12:34.28    
    Code: 0x00000005     Source: Formating Excel Sheet Formating Excel Sheet     Description: BC30179 - enum 'ScriptResults' and enum 'ScriptResults' conflict in class 'ScriptMain'., ScriptMain.vb, 191, 22  End Error 
    Error: 2013-03-13 17:12:34.29     Code: 0x00000005     Source: Formating Excel Sheet Formating Excel Sheet     Description: The binary code for the script is not found. Please open the script in the
    designer by clicking Edit Script button and make sure it builds successfully.  End Error  Error: 2013-03-13 17:12:51.56     Code: 0x00000004     Source: Checking Alcon Files      Description:
    The binary code for the script is not found. Please open the script in the designer by clicking Edit Script button and make sure it builds successfully.  End Error  Error: 2013-03-13 17:12:51.56     Code: 0xC0024107    
    Source: Checking Alcon Files      Description: There were errors during task validation.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  5:12:27 PM  Finished: 5:12:51 PM 
    Elapsed:  24.336 seconds.  The package execution failed.  The step failed."
    Please give some solution to this.
    Thanks in advance

    Are you editing this job in SQL 2012? Is it wrapping your paths in \"? Like for example does the command line tab on the step look like this:
    /FILE "\"D:\yourPathGoesHere.dtsx\""  /CONFIGFILE "\"D:\yourPathGoesHere.dtsConfig\"" /CHECKPOINTING OFF /REPORTING E
    That's the problem I had, and I resolved it by recreating the whole thing via SQL Script and getting rid of all those \" things. I think that is preventing SSIS from looking up the precompiled binaries for your Script Task. So you should edit the command
    line manually:
    /FILE "D:\yourPathGoesHere.dtsx"  /CONFIGFILE "D:\yourPathGoesHere.dtsConfig" /CHECKPOINTING OFF /REPORTING E
    Please write back whether that helps you. David Dye's answer didn't help me at all.

  • Template having export to excel functionality with filter values in WAD

    Hi,
    I need to create a template which has export to excel functionality with all the filter values that the user has selected in the selection screen.
    export to excel can be done but how can be the output excel sheet contain only those values which we see in browser  when the report is executed with some filters.
    Regards,
    Apeksha

    Hi Apeksha,
    you can achieve this requirement (unless I do not know the detailled requirement) perhaps by using this way of implementation:
    1. Create a new template which contains an info_field which does a data binding to the variable values or the characteristic you want to display. Set the visibility of the top container to "hidden". Add a empty data provider to this template. However be aware that the name for the (empty) data provider must match the name of the data provider within the original template you want to print.
    2. Open your original template and include the template you created in step 1 (Advanced: Web Templates and technical name of the web template created in step 2). Choose the appropriate location (above/below the analysis item).
    3. Check the settings of your export command: do not set a special web item to be printed.
    If you export the template within web the second template should be printed correctly displaying the variable settings chosen in step 2 for the info_field.
    Brgds,
    Marcel

  • How can I compile all functions, procedures and packages with a script?

    I need to compile all functions, procedures and packages of 5 schemas (users) with a script.
    How can I do it?
    Thanks!

    you can create a script to select all invalid objects in those schemas Since Oracle 8 introduced NDS this approach has struck me as a trifle old fashioned. It's much simpler to loop round the query in PL/SQL and use EXECUTE IMMEDIATE to fire off the DDL statements. No scripts, no muss, no fuss.
    Having said that, the problem with this approach and also with using DBMS_UTILITY.COMPILE_SCHEMA is that they do not compile all the invalid objects in dependency order. This may result in programs being invalidated by the subsequent compilation of dependencies. This is due to the introduction of Java into the database.
    The UTLRP script is much better, because it (usually) avoids cyclic references. But you still may need to run it more than once.
    In general it is better to avoid sledgehammer recompilations (like DBMS_UTILITY.COMPILE_SCHEMA, which starts by invalidating all the objects). If we have twenty invalid objects, nineteen of which are dependencies of the twentieth, we actually only need to recompile the master object, as recompiling it will trigger the recompilation of all the others.
    Cheers, APC

Maybe you are looking for

  • Remove existing field value from transaction CV01N

    Hi Ramchander, i already used that method but i.e. not working . when CV01N transaction has done docuement number is automatically created thats why it should be blank so, my problem is that document is blank for 1st record & when 2nd record is creat

  • Cannot print PDF's with Kyocera

    I am using a Kyocera 5050 in my office installed as a network printer that utilizes local authorization codes for each employee in order to track printing usage. Normally, a print job will be sent to the printer and a box will pop up asking for crede

  • FYI Playing PAL DVD on US MBP

    I am not sure if this has been brought up before, but my MBP (late 2007), and I am sure many other similar boxes play PAL DVDs perfectly. No conversion necessary. I normally use VLC, but I checked with the Leopard DVD player and both work normally. I

  • IMac G5 freezing after a day of being on.

    Hi all, Ever since I upgraded to 10.4.9 my Mac has taken to freezing at some point between 24 and 36 hours after being turned on. Initially everything just stops. The clock stops, plus I'm unable to change applications or make any input at all (your

  • Firefox not remember password fot phpbb forums :(

    Firefox have problem with phpbb forum. Password remember function is not functional. Maybe some internet banks too (Opera not have this problem...)