Compile Time Error in "stdio.h" File.

Installed SunStudio 12.1 in LinuxMint 8 and tried to run the "Welcome" Sample C++ Application, but the IDE reported compilation errors. The Error from the OUTPUT windows is thus:
Running "/home/ufonduo/DeveloperCenter/SunStudio-12.1/sunstudio12.1/bin/dmake -f Makefile CONF=Debug" in /home/ufonduo/SunStudioProjects/Samples/Welcome
dmake: defaulting to parallel mode.
See the man page dmake(1) for more information on setting up the .dmakerc file.
ufondu --> 1 job
ufondu --> 2 jobs
/home/ufonduo/DeveloperCenter/SunStudio-12.1/sunstudio12.1/bin/dmake -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
/home/ufonduo/DeveloperCenter/SunStudio-12.1/sunstudio12.1/bin/dmake -f nbproject/Makefile-Debug.mk dist/Debug/SunStudio-Linux-x86/welcome
ufondu --> 1 job
mkdir -p build/Debug/SunStudio-Linux-x86
CC -c -g -o build/Debug/SunStudio-Linux-x86/welcome.o welcome.cc
ufondu --> Job output
mkdir -p build/Debug/SunStudio-Linux-x86
CC -c -g -o build/Debug/SunStudio-Linux-x86/welcome.o welcome.cc
"/usr/include/stdio.h", line 480: Error: "(" expected instead of "__attribute__".
"/usr/include/stdio.h", line 480: Error: "(" expected instead of "__attribute__".
"/usr/include/stdio.h", line 480: Error: ")" expected instead of "__attribute__".
"/usr/include/stdio.h", line 480: Error: ")" expected instead of "__attribute__".
"/usr/include/stdio.h", line 483: Error: "(" expected instead of "__attribute__".
"/usr/include/stdio.h", line 483: Error: "(" expected instead of "__attribute__".
"/usr/include/stdio.h", line 483: Error: ")" expected instead of "__attribute__".
"/usr/include/stdio.h", line 483: Error: ")" expected instead of "__attribute__".
"/usr/include/stdio.h", line 488: Error: "(" expected instead of "__attribute__".
"/usr/include/stdio.h", line 488: Error: "(" expected instead of "__attribute__".
"/usr/include/stdio.h", line 488: Error: ")" expected instead of "__attribute__".
"/usr/include/stdio.h", line 488: Error: ")" expected instead of "__attribute__".
12 Error(s) detected.
*** Error code 12
dmake: Fatal error: Command failed for target `build/Debug/SunStudio-Linux-x86/welcome.o'
Current working directory /home/ufonduo/SunStudioProjects/Samples/Welcome
*** Error code 1
dmake: Fatal error: Command failed for target `.build-conf'
Current working directory /home/ufonduo/SunStudioProjects/Samples/Welcome
*** Error code 1
dmake: Fatal error: Command failed for target `.build-impl'
Build failed. Exit value 1.
Can someone help me get the SunStudio up and running?
Tested the C and Fortran Sample Apps and they compiled and ran perfectly.
I appreciate your imput.
Edited by: user9952972 on Oct 30, 2010 8:58 AM
Edited by: user9952972 on Oct 30, 2010 9:02 AM

The same question is asked and answered in the Studio for Linux forum.
dynamic where-clause
Due to the wide variation in Linux distributions, even variances across "minor" updates, Studio does not always work on unsupported systems like yours. The Release Notes for the version of Studio you have lists the supported systems.

Similar Messages

  • Compile time error

    I am a newbie in XML. I am trying to compile the following code. I am getting compile time errors. I have following environment varaibles set. Any help will be really appreciated.
    TIA.
    set JAVA_HOME=C:\Program Files\jdk1.3.1_03
    set JWSDP_HOME=C:\Program Files\jwsdp-1.1
    set JAXB_HOME=%JWSDP_HOME%\jaxb-1.0
    set JAXB_LIBS=%JAXB_HOME%\lib
    set JAXP_LIBS=%JWSDP_HOME%\jaxp-1.2.2\lib
    set JWSDP_LIBS=%JWSDP_HOME%\jwsdp-shared\lib
    set PATH=%JAVA_HOME%\bin;%JAXB_HOME%\bin;%JWSDP_HOME%\jwsdp-shared\bin;%PATH%
    set CLASSPATH=%JAXB_LIBS%\jaxb-api.jar;%JAXB_LIBS%\jaxb-ri.jar;%JAXB_LIBS%\jaxb-xjc.jar;%JAXB_LIBS%\jaxb-libs.jar;%JAXP_LIBS%\jaxb-api.jar;%JAXP_LIBS%\endorsed\xercesImpl.jar;%JAXP_LIBS%\endorsed\xalan.jar;%JAXP_LIBS%\endorsed\sax.jar;%JAXP_LIBS%\endorsed\dom.jar;%JWSDP_LIBS%\jax-qname.jar;%JWSDP_LIBS%namespace.jar;.
    C:\Learn XML>javac -verbose CountSax.java
    [parsing started CountSax.java]
    [parsing completed 63ms]
    CountSax.java:3: package org.xml.sax does not exist
    import org.xml.sax.* ;
    ^
    CountSax.java:4: package org.xml.sax.helpers does not exist
    import org.xml.sax.helpers.* ;
    ^
    CountSax.java:5: package javax.xml.parsers does not exist
    import javax.xml.parsers.*;
    ^
    CountSax.java:7: cannot resolve symbol
    symbol : class DefaultHandler
    location: class CountSax
    public class CountSax extends DefaultHandler {
    ^
    [loading C:\jdk1.3.1_02\jre\lib\rt.jar(java/lang/String.class)]
    CountSax.java:22: cannot resolve symbol
    symbol : class Attributes
    location: class CountSax
    public void startElement(String name,Attributes atts) {
    import java.io.* ;
    import org.xml.sax.* ;
    import org.xml.sax.helpers.* ;
    import javax.xml.parsers.*;
    public class CountSax extends DefaultHandler {
    public static void main(String args[]) {
    SAXParserFactory factory = SAXParserFactory.newInstance() ;
    SAXParser saxParser = factory.newSAXParser() ;
    saxParser.parse(new File(args[0]),new CountSax()) ;
    static private int eltCount = 0 ;
    public void startDocument() {
    eltCount = 0 ;
    public void startElement(String name,Attributes atts) {
    eltCount ++ ;
    public void endDocument() {
    System.out.println("Total number of elements: " + eltCount) ;
    }

    Here is my classpath now
    set CLASSPATH=%JAVA_HOME%;%JAXB_LIBS%\jaxb-api.jar;%JAXB_LIBS%\jaxb-ri.jar;%JAXB_LIBS%\jaxb-xjc.jar;%JAXB_LIBS%\jaxb-libs.jar;%JAXP_LIBS%\jaxb-api.jar;%JAXP_LIBS%\endorsed\xercesImpl.jar;%JAXP_LIBS%\endorsed\xalan.jar;%JAXP_LIBS%\endorsed\sax.jar;%JAXP_LIBS%\endorsed\dom.jar;%JWSDP_LIBS%\jax-qname.jar;%JWSDP_LIBS%namespace.jar;.
    It still doesn't work. The pakages that it is complaining about comes from sax.jar which is already in classpath. Can anybody please help.
    TIA

  • Getting compile time errors during gwt application compilation

    Hi,
    I am getting below compile errors while running ant script for my GWT application.
    javac:
    [javac] Compiling 32 source files to D:\Projects\workspace\MckSurvey\war\WEB-INF\classes
    [javac] D:\Projects\workspace\MckSurvey\src\com\spinsci\survey\client\model\QuestionBean.java:38: type parameters of <X>X cannot be determined; no unique maximal instance exists for type variable X with upper bounds int,java.lang.Object
    [javac]           return get("questionId");
    [javac] ^
    I am using JDK 1.6 and ANT 1.7 s/w.
    below is the target which is used in the build file:
    <javac srcdir="src" includes="**" encoding="utf-8"
    destdir="war/WEB-INF/classes"
    nowarn="true"
    debug="true" debuglevel="lines,vars,source"
         includeDestClasses="false"
         source="1.5" target="1.5"      
              >
    <classpath refid="project.class.path"/>
    <compilerarg value="-Xlint:-unchecked"/>
    </javac>
    Please suggest me accordingly to overcome this generics compile time errors.
    Regards,
    Sunder.

    dannyyates wrote:
    There are/have been numerous examples of differences in spec interpretation between Eclipse (ecj) and the Sun compiler. I generally find that Eclipse is more accurate in it's interpretation than Sun! :-)
    I would suggest raising this on an appropriate Eclipse forum. The guys there are normally very good at digging into the issue and explaining why they think they are right or else admitting that they've got it wrong.I totally agree on both accounts. I myself have seen at least two compiler bugs and asked both the Sun guys and the Eclipse guys (through their respective bug tracking systems) and both have been resolved (in both cases ecj was actually right, but I wouldn't dare drawing any conclusions from that ;-)).

  • Pls suggest a reason for a compile time error

    the following program gives a compile time error bcoz of the statement
    ((State)this).val=this.val. if u could suggest why?
    public class Mainc
    public static void main(String args[])
    State st=new State();
    System.out.println(st.getvalue());
    State.Memento mem= st.memfunc();
    st.altervalue();
    System.out.println(st.getvalue());
    mem.restore();
    System.out.println(st.getvalue());
    public static class State
    protected int val=11;
    int getvalue()
         return val;
    void altervalue()
         val=(val+7)%31;
    Memento memfunc()
         return new Memento();
    class Memento
         int val;
    Memento()
         this.val=state.this.val;
         void restore()
              ((State)this).val=this.val;
    }

    The statement :
    ((State)this).val
    tries to cast Memento into its super class State which is inorrect [former is not latter's subclass]
    restore method should be as follows:
    void restore()
    State.this.val=this.val;
    }

  • Compile time errors for large code in try-catch blocks

    Hi, Has anyone ever faced this problem of a compile time error, where the Java compiler returns with the following error that Code is too large for try block.
    I have about 5000 thousand lines in my try-catch block and am facing this problem. Please suggest possible solutions

    1) Are you sure that your try/catch blocks contain 5 million lines?! I seriously don't believe this.Sounds like generated code. The generator needs to be a bit cleverer. In particular, it seems to be generating repeated blocks of code that ought to be stuffed into methods somewhere.

  • Quick time error 2048 - cant open file

    I just downloaded quick time and cant open some files. They are designed for quick time but when I try and open them I get the 2048 error message. I have deleted and re-installed the quck time and am still getting the message.
    Any ideas ?

    Error -2048 implies MPEG-2 file format which QuickTime Player doesn't play without additional software:
    http://www.apple.com/quicktime/mpeg2/

  • Run Time Error When opening PDF File on Computer

    I am getting a run time error when I try to open up PDF's on my computer.  The error message reads, "The application has requested the runtime to terminate in an unusual way.  When I click ok the error box I get a message that says adobe reader has stopped working and the program has been closed.  FYI I am using the latest version of adobe reader

    Operating system is Windows Vista Home Premium..
    Version of Adobe Reader is 10.1.13.
    Any thoughts on what the issue is?

  • Getting run time error when accessing the file from frontend server using F4.....?

    Category               ABAP Programming Error
    Runtime Errors         CONVT_NO_NUMBER
    Except.                CX_SY_CONVERSION_NO_NUMBER
    ABAP Program           ZMM_MIGO_GOODS_ISSUE
    Application Component  Not assigned
    Date and Time          26.05.2014 14:28:30
    Short Text
         "C:\Users\SAP\Desktop\MIGO\MIGO.xlsx" cannot be interpreted as a number
    What happened?
         Error in the ABAP Application Program
         The current ABAP program "ZMM_MIGO_GOODS_ISSUE" had to be terminated because
          it has
         come across a statement that unfortunately cannot be executed.
    Error analysis
         An exception has occurred which is explained in more detail below. The
         exception is assigned to class 'CX_SY_CONVERSION_NO_NUMBER' and was not caught
          in procedure
         "%_SEL_SCREEN_P_FNAME_V" "(FORM)", nor was it propagated by a RAISING clause.
         Since the caller of the procedure could not have anticipated this

    HI CHIRUI,
    I have changed and tried but still i a getting the same thing..
    otherwise please check this i am using some class method i am not getting short dump,but excel file is not getting uploaded.
    REPORT ZMM_MIGO_GOODS_ISSUE NO STANDARD PAGE HEADING.
    DATA : BEGIN OF IT_DATA OCCURS 0,
             ID(10),
             BLDAT(10),                             " Document Date
             BUDAT(10),                             " Posting Date
             REF_DOC_NO(16),                        " Material Slip No
             DEL_NOTE(16),                          " delivery note
             MATNR TYPE MSEG-MATNR,                 " Material Number
             ERFMG(13) TYPE C,                      " Quantity
             BWART TYPE RM07M-BWARTWA,              " Movement Type
             SOBKZ(1),                              " Special Stock
             WERKS TYPE RM07M-WERKS,                " Plant
             LGORT TYPE RM07M-LGORT,                " Storage Location
             PS_POSID TYPE PS_POSID,                " WBS Element
             COST_CENTER TYPE KOSTL,                " cost center
             ORDER TYPE AUFNR,                      " order number
             SERNR TYPE RIPW0-SERNR,                " Serial Number
            END OF IT_DATA,
            BEGIN OF IT_HEAD OCCURS 0,
              ID(10),
              BLDAT(10),                            " Document Date
              BUDAT(10),                            " Posting Date
              REF_DOC_NO(16),                       " Reference document number
              "HEADER_TXT(25),                       " Header Text
              BWART TYPE RM07M-BWARTWA,             " Movement Type
            END OF IT_HEAD,
            BEGIN OF IT_ITEM OCCURS 0,
              ID(10),
              "ID1(10),
              WERKS TYPE RM07M-WERKS,               " Plant
              LGORT TYPE RM07M-LGORT,               " Storage Location
              VAL_TYPE TYPE BWTAR_D,
              MATNR TYPE MSEG-MATNR,                " Material Number
              ERFMG(13) TYPE C,                     " Quantity
              CHARG TYPE MSEG-CHARG,                " Batch
              BWTAR TYPE BWTAR_D,
              PS_POSID TYPE PS_POSID,                 " WBS Element
              ERFME TYPE MSEG-ERFME,                  " Unit
              COST_CENTER TYPE KOSTL,                " cost center
              ORDER TYPE AUFNR,                      " order number
              CUSTOMER TYPE EKUNN,                    " Account Number of Customer
              SERNR TYPE RIPW0-SERNR,                 " Serial Number
              AMOUNT_LC TYPE BAPI_EXBWR,
              SOBKZ(1),
            END OF IT_ITEM,
              HEADER   LIKE BAPI2017_GM_HEAD_01,
              CODE     LIKE BAPI2017_GM_CODE,
              ITEMS    LIKE BAPI2017_GM_ITEM_CREATE OCCURS 0 WITH HEADER LINE,
              SERIAL   LIKE BAPI2017_GM_SERIALNUMBER OCCURS 0 WITH HEADER LINE,
              RETURN   LIKE BAPI2017_GM_HEAD_RET,
              RET      LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE,
              TESTRUN  LIKE BAPI2017_GM_GEN-TESTRUN,
              IT_TAB   TYPE FILETABLE,
              GD_SUBRC TYPE I,
              L_FILE   TYPE RLGRAP-FILENAME,
              IT_RAW   TYPE TRUXS_T_TEXT_DATA,
              COUNT(2) TYPE N,
              TEXT_C(30).
    DATA: DATA     LIKE TABLE OF IT_ITEM WITH HEADER LINE.
    DATA: IT_TEMP  LIKE TABLE OF IT_ITEM WITH HEADER LINE.
    DATA: IT_TEMP1 LIKE TABLE OF IT_ITEM WITH HEADER LINE.
    DATA: IT_ITEM1 LIKE TABLE OF IT_ITEM WITH HEADER LINE.
    SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS : P_FILE TYPE RLGRAP-FILENAME.
    *             p_test AS CHECKBOX.
    SELECTION-SCREEN: END OF BLOCK B1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
       CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
         EXPORTING
           WINDOW_TITLE = 'SELECT FILE'
         CHANGING
           FILE_TABLE   = IT_TAB
           RC           = GD_SUBRC.
       READ TABLE IT_TAB INTO P_FILE INDEX 1.
    START-OF-SELECTION.
       PERFORM GET_EXCEL_DATA.
       PERFORM GET_HEADER_ITEM.
       PERFORM UPDATE_DATA.
    *&      Form  GET_EXCEL_DATA
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM GET_EXCEL_DATA .
       CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
         EXPORTING
           INPUT  = P_FILE
         IMPORTING
           OUTPUT = L_FILE.
       CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
         EXPORTING
           I_LINE_HEADER        = 'X'
           I_TAB_RAW_DATA       = IT_RAW
           I_FILENAME           = L_FILE
         TABLES
           I_TAB_CONVERTED_DATA = IT_DATA
         EXCEPTIONS
           CONVERSION_FAILED    = 1
           OTHERS               = 2.
       IF SY-SUBRC <> 0.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ENDIF.
    ENDFORM. " GET_EXCEL_DATA
    *&      Form  GET_HEADER_ITEM
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM GET_HEADER_ITEM .
       DATA : FLAG(1).
       LOOP AT IT_DATA.
         CLEAR FLAG.
         IF IT_DATA-ID IS NOT INITIAL.
           AT NEW ID.
             FLAG = 'X'.
           ENDAT.
         ENDIF.
         IF FLAG = 'X'.
           MOVE-CORRESPONDING IT_DATA TO IT_HEAD.
           APPEND IT_HEAD.
         ENDIF.
         MOVE-CORRESPONDING IT_DATA TO IT_ITEM.
         APPEND IT_ITEM.
       ENDLOOP.
       DATA[] = IT_ITEM[].
       IT_TEMP[] = IT_ITEM[].
       IT_TEMP1[] = IT_ITEM[].
    ENDFORM. " GET_HEADER_ITEM
    *&      Form  UPDATE_DATA
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM UPDATE_DATA .
       DATA : COUNT1(10),
              L_QTY TYPE I,
              DAT(10).
       CONCATENATE SY-DATUM+6(2) '.' SY-DATUM+4(2) '.' SY-DATUM(4) INTO DAT.
       LOOP AT IT_HEAD.
         ON CHANGE OF IT_HEAD-ID.
           CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
             EXPORTING
               DATE_EXTERNAL       = IT_HEAD-BUDAT
               ACCEPT_INITIAL_DATE = 'X'
             IMPORTING
               DATE_INTERNAL       = HEADER-PSTNG_DATE.
           IF SY-SUBRC <> 0.
             MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                     WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
           ENDIF.
           CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
             EXPORTING
               DATE_EXTERNAL       = IT_HEAD-BLDAT
               ACCEPT_INITIAL_DATE = 'X'
             IMPORTING
               DATE_INTERNAL       = HEADER-DOC_DATE.
           IF SY-SUBRC <> 0.
             MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
           ENDIF.
           MOVE : '2'                TO HEADER-VER_GR_GI_SLIP,
                  'X'                TO HEADER-VER_GR_GI_SLIPX.
    *      IF r1 EQ 'X'.
           MOVE '05' TO CODE-GM_CODE.
           HEADER-REF_DOC_NO = IT_HEAD-REF_DOC_NO.
           "HEADER-HEADER_TXT = IT_HEAD-HEADER_TXT.
    *      ELSEIF r2 EQ 'X'.
    *        MOVE '04' TO code-gm_code.
    *      ELSEIF r3 EQ 'X'.
    *        MOVE '04' TO code-gm_code.
    *      ENDIF.
    *      IF p_test = 'X'.
    *        MOVE 'X' TO testrun.
    *      ENDIF.
         ENDON.
         IT_ITEM1[] = IT_ITEM[].
    *delete it_item[] where werks = '' and id = it_head-id.
         DELETE ADJACENT DUPLICATES FROM IT_ITEM COMPARING ID MATNR.
         LOOP AT IT_ITEM WHERE ID = IT_HEAD-ID.
    *      ON CHANGE OF it_item-id1.
           COUNT1 = COUNT1 + 1.
           CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
             EXPORTING
               INPUT  = IT_ITEM-MATNR
             IMPORTING
               OUTPUT = ITEMS-MATERIAL.
           MOVE : IT_ITEM-WERKS TO ITEMS-PLANT,
                  IT_ITEM-LGORT TO ITEMS-STGE_LOC,
    *             it_item-lgort1 TO items-move_stloc,
                  IT_ITEM-CHARG TO ITEMS-BATCH,
    *            IT_ITEM-VAL_TYPE TO ITEMS-VAL_TYPE,
                  'FRESH' TO ITEMS-VAL_TYPE,
                  IT_HEAD-BWART TO ITEMS-MOVE_TYPE,
                  IT_ITEM-SOBKZ TO ITEMS-SPEC_STOCK,
                  IT_ITEM-ERFMG TO ITEMS-ENTRY_QNT,
                  IT_ITEM-ERFMG TO ITEMS-ENTRY_QNT,
    *            it_item-erfme TO items-entry_uom,
    *            it_item-sgtxt TO items-item_text,
    *            it_item-exbwr TO items-amount_lc,
                  IT_ITEM-PS_POSID TO ITEMS-WBS_ELEM,
                  IT_ITEM-PS_POSID TO ITEMS-VAL_WBS_ELEM,
                  "IT_ITEM-CUSTOMER TO ITEMS-CUSTOMER,
                  IT_ITEM-ERFMG TO L_QTY,
                  IT_ITEM-AMOUNT_LC TO ITEMS-AMOUNT_LC,
                  IT_ITEM-COST_CENTER TO ITEMS-COSTCENTER,
                  IT_ITEM-ORDER TO ITEMS-ORDERID.
    *             items-SPEC_MVMT = 'R'.
           CALL FUNCTION 'CONVERSION_EXIT_ABPSN_INPUT'
             EXPORTING
               INPUT  = ITEMS-WBS_ELEM
             IMPORTING
               OUTPUT = ITEMS-WBS_ELEM.
           CALL FUNCTION 'CONVERSION_EXIT_ABPSN_INPUT'
             EXPORTING
               INPUT  = ITEMS-VAL_WBS_ELEM
             IMPORTING
               OUTPUT = ITEMS-VAL_WBS_ELEM.
    *      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    *        EXPORTING
    *          input  = it_item-lifnr
    *        IMPORTING
    *          output = items-vendor.
           APPEND ITEMS.
    *      ENDON.
         ENDLOOP.
         DELETE ADJACENT DUPLICATES FROM IT_TEMP COMPARING ID MATNR.
         DELETE IT_TEMP1 WHERE ID <> IT_HEAD-ID.
         DELETE IT_TEMP WHERE ID <> IT_HEAD-ID.
         DATA: MAT_ITM TYPE MBLPO,
               SERNP TYPE SERAIL.
         MAT_ITM = '0001'.
         LOOP AT IT_TEMP.
           SELECT SINGLE SERNP FROM MARC INTO SERNP WHERE MATNR = IT_TEMP-MATNR.
           IF SERNP IS NOT INITIAL.
             LOOP AT IT_TEMP1 WHERE ID = IT_TEMP-ID AND MATNR = IT_TEMP-MATNR.
    *    MOVE : it_item1-id TO serial-matdoc_itm,
    *     MOVE : mat_itm TO serial-matdoc_itm,
               SERIAL-MATDOC_ITM = MAT_ITM .
               SERIAL-SERIALNO   = IT_TEMP1-SERNR.
               APPEND SERIAL.
               CLEAR IT_ITEM1.
             ENDLOOP.
             MAT_ITM = MAT_ITM + 1.
           ENDIF.
           CLEAR IT_TEMP.
         ENDLOOP.
         CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
           EXPORTING
             GOODSMVT_HEADER       = HEADER
             GOODSMVT_CODE         = CODE
             TESTRUN               = TESTRUN
    *       GOODSMVT_REF_EWM      =
           IMPORTING
             GOODSMVT_HEADRET      = RETURN
    *       MATERIALDOCUMENT      =
    *       MATDOCUMENTYEAR       =
           TABLES
             GOODSMVT_ITEM         = ITEMS
             GOODSMVT_SERIALNUMBER = SERIAL
             RETURN                = RET
    *       GOODSMVT_SERV_PART_DATA =
    *       EXTENSIONIN           =
         CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
           EXPORTING
             WAIT = 'X'
    *   IMPORTING
    *       RETURN        =
         IF NOT RETURN IS INITIAL.
           WRITE :/ 'Material Document Number Generated: ' ,RETURN-MAT_DOC,RETURN-DOC_YEAR.
         ELSE.
           LOOP AT RET.
             WRITE : RET-TYPE,    RET-MESSAGE.
    *      log-index = sy-index.
    *      log-matnr = header-material.
    *      log-message = ret1-message.
    *      APPEND log.
           ENDLOOP.
         ENDIF.
         REFRESH : ITEMS,RET.
         CLEAR : HEADER,RETURN.
         CLEAR: TESTRUN  ,
                RETURN,
                ITEMS[],
                SERIAL[],
                RET[],
                HEADER,
                IT_TEMP[] ,
                IT_TEMP1[].
         IT_TEMP[] = DATA[].
         IT_TEMP1[] = DATA[].
       ENDLOOP.
    ENDFORM. " UPDATE_DATA
    Regards,
    Suresh bheema

  • A compile time error

    Hello,
    After the precompile, I obtained the following error. Who
    can tell me where I can find the library "-laio" ?
    /usr/bin/ld: cannot open -laio: No such file or directory
    Stephen Lee
    null

    Stephen Lee (guest) wrote:
    : Hello,
    : After the precompile, I obtained the following error. Who
    : can tell me where I can find the library "-laio" ?
    : /usr/bin/ld: cannot open -laio: No such file or directory
    : Stephen Lee
    You can't. Linux doesn't yet support asynchronous I/O.
    The only thing you can do is to modify your Makefile.
    null

  • Hi sunil i used this code but showing error called (startingrow)compile time sub or function are not defined please

    i wanted to update data of excelsheet to mysql database  but displaying an compile time error as sub or functions are not defined           -------------->(startingrow)     please help me out 
    Dim cn As New ADODB.Connection
    Dim number, nRows, wds_id, production_data
      cn.ConnectionString = "Provider = MSDASQL.1; Persist Security Info = False;Data Source = mysql32; User ID = root;Password = bmx1; Initial Catalog = wds"
      cn.CursorLocation = adUseClient
      cn.Open
     Dim i As Integer, QryTxt As String
     i = StartingRow(wds_id) ---------->In this line
     Do Until i = Sheet1.Rows.count
      If Sheet1.Cells(i, 1) = "" Then
       nRows = i - 1
       Exit Do
      End If
      i = i + 1
     Loop
     For i = StartingRow(wds_id) To nRows
            QryTxt = QryTxt & "update tblprod_agr_006 set wds_id1 = '" & Replace(Sheet1.Cells(i, 1), "'", "''") & "'," & vbCrLf
                               QryTxt = QryTxt & "    column2 =  '" & Replace(Sheet1.Cells(i, 3), "'", "''") & "'," & vbCrLf
                               QryTxt = QryTxt & "    column3 =  '" & Sheet1.Cells(i, 4) & "'," & vbCrLf
            QryTxt = QryTxt & "where conditioncolumn =" & "'" & Sheet1.Cells(i, 2) & "'" & "" & vbCrLf
     Next
     cn.Execute (QryTxt)

    First off, is this relating to a Microsoft SQL Server database, or a MySQL database?  I see several references to MySQL in your example.
    Your code uses a function StartingRow() which isn't a built-in T-SQL function.  So, if it is a function you've defined, you need to make sure it's properly referenced in order to use it.  (may need a 2 or 3 part name if it isn't in the default
    schema or the same database.)
    Microsoft SQL Server Storage Engine PM

  • ClassNotFoundException at compiling time

    I am trying to access MySql database from a java applet, but my java file does not compile with this message error: java.lang.ClassNotFoundException...
    I have jdk1.3.1_03 installer under Windows98 SE and compiling with javac.exe...
    I have set the autoexec.bat environment to
    PATH C:\JDK1.3.1_03\BIN
    SET JAVA_HOME=C:\jdk1.3.1_03
    SET CLASSPATH=C:\WINDOWS\ESCRITORIO\JAVA\mm.mysql-2.0.13-bin.jar
    where i have the jar file. Also have proved withouth the filename on it, and many different combinations. I am completely stuck, please any idea will be very welcome!!!!!!!!
    Thanks...
    Cesar

    If you are getting an exception, it is a run-time error not a compile-time error.
    Try including your current working directory in your classpath.

  • Compile time timestamp?

    Is there a way to get a datestamp at compile time so it can be comiled into an "about" dialog.
    If not, is there a way to extract the version from the jar file at run time and plug it into the message dialog?
    Thanks,
    --gary                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    The file date on the file system will not work because when someone downloads the program their local file create date will not match the build date of the program, and the whole reason for the build date is so that people comparing results can verify easily that they are using the same build.
    Yes, I have been given many hints, none of which actually work. Mostly they return null pointers at some point. I have tried over a dozen different approaches so far and every one has failed to read the manifest file in my jar. The closest I got was one that read the manifest in some random jar on the classpath, but trying to open the specifc jar has so far resulted in null pointers.
    I'm trying to use JarInputStream right now but the code generates a compile time error that someone here in this forum tells me is not possible. I have a hunch the JarInputStream approach is going to work if I can ever get the compiler to accept it.
    --gary                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • While creating a student through piqstc getting abap run time error

    Hi Experts,
    I am new to SLCM,
    By following Micheal Fan's Basic configuration document,
    I have done the basic configuration required  for creating a student & maintaining  the student file,
    But while trying to create a student through PIQST00/PIQSTC getting abap run time error,
    Attaching the txt file for complete view of abap error.
    Please guide how to resolve this error.
    Regards,
    Prashanti Swain

    Hi Rob,
    Thanks a ton, for your quick reply,
    But I have not understood the reason of the issue.
    As i said I followed Micheal Fan's Document for configuration,
    in that document there is no configuration  step is defined for Vendor master data.
    Could you please explain it in a more detail way.
    Regards,
    Prashanti Swain

  • Compile time constants

    Hey i have a doubt regd compile time constants
    byte a =10,b=20;
    byte c= a+b; // compile time error coz a+b may exceed byte limit
    int a=10,b=20;
    int d=a+b; // not showing any error . a+b may exceed int limit
    can anyone clear me int his

    public class Test {
        public static void main(String[] args) {
            byte a = 10, b = 20;
            byte c = a+b;  //syntax error: "possible loss of precision"
            final byte d = 10, e = 20;
            byte f = d+e;  //OK
    }It's not about overflow, but implicit casting: in the expression a+b, bytes a and b
    are widened to int and the addition is 32-bit addition -- the result is an int.
    When you attempt to assign an int to a byte, the top three bytes are discarded,
    hence the syntax error "possible loss of precision". You get the same
    error message when assigning a double to a float.
    Why don't I get the syntax error with my d-e-f example? Variables d and e
    are declared final, so the compiler folds in their values. Thus it know 10+20
    is 30 and that the int value 30 fits into one byte.

  • Question about compile-time legality rules for cast conversion

    Hi, In the rules which explain compile-time legality for cast conversion, it is often mentioned the following scenario in the cast conversion of a compile-time type S to a compile-time type T:
    if S is a class type then:
    if T is a class type then either |S| <: |T| or |T| <: |S| or a compile time error occurs. Furthermore, if there exist a supertype X of T and a supertype Y of S such that X and Y are provably distinct parameterized types and that the erasures of X and Y are the same, a compile-time error occurs.
    As regards the quote in bold, I imagine the following scenario:
    1) S <: T and extends Y
    2) Y<T1...Tn>
    3) X<T1..Tn>
    4) T extends X
    Does the above represents a supertype X of T and a supertype Y of S such that X and Y are provenly distinct parameterized types? If that holds, what does it mean that the erasure of X and Y is the same?

    Declarative programing has all but gone the way of
    the doe doe because...
    1: It is not flexible (It is extremely difficult to
    change a complex system in a predetermined way)isn't this the "expert system" model?
    2: It lengthens the development cycle (see item 1)
    3: It normally forces the developer to add many
    things to there code to get things to work, that have
    nothing to do with the intent of the code.more things? the declarations or the declaration processing?
    In its defense (I like a declarative model but, do
    not like being forced into one)...not advocating a forced change in Java
    1: It increases code safety.
    2: It can shorten the development cycle, in certain
    circumstances (especially if it is not overused),
    because it can greatly increase the readability of
    code.
    3: It follows many best practices (although this is
    also possible in a Non-Declarative model).as for best practices what I'd like to see are declarative design patterns, Adapter, Singleton, Factory, Delegate, Strategy, Interpreter, Proxy, Visitor
    too often the design intent is lost in an implementation or design details can only be deduced by class/field/method names, comments, and accompanying docs
    So, if everyone had unlimited time, and an unlimited
    budget, yes declaritive is the way to go. Since that
    is not the case, we filtered out 99% of what it gave
    us, made sure the stuff that was getting in the way
    was removed, and what do you have???
    You guessed it OOA&D.
    Now having said that should we be more declarative? I
    think so, but I will tell you now, REQUIRING
    declarative elements in code is a sure fire way to
    get the majority of development groups to drop the
    language (and I think Java as it stands currently CAN
    be declarative, so if you have one of those unlimited
    budgets, go for it!).no need to require it
    I believe given good (reusable) declarative options, on top of OOP, will become the chosen approach
    reusable design declarations would lessen overall cost and increase readability

Maybe you are looking for

  • Data from PSA to ODS taking very very long time and fails

    Hi Gurus, I have been trying to load data from my CRM system to BI with some range in Data Selection. I was loading to PSA then then Data Target (Package by Package). It failed twice by taking lot of time. Then I brought the data to the PSA only succ

  • NI pci 6251 position control

    Hi Im new to this forum and new to Labview and NI pci 6251 as well ;( I'm using NI-PCI-6251 (DC Motor ) with Labview to control the position of a DC motor  we developed the program that reads the encoder and display the position of the DC motor shaft

  • Not Reading DVDs

    I purchased my Mini in May '06. Overall, I have been pretty pleased as this is my first Mac. However, I have experienced sporatic episodes where it will stop reading commercial DVDs. For the past three days, every time I put in a DVD, it is opened in

  • How to create a text field (multi-line) that starts on one pages but finishes on another?

    Hi, I would like to create a multiline text field that the field starts on one pages but finishes on another? Here is an example of what I want. The text starts in the top of the box (1st box) and would continue in the bottom box (2nd box). I have Ad

  • Creating a dynamic interactive form

    I have been working at trying to get a text field that expands when more text is added to the field. I have been looking at the sample Purchase Order form that came with Designer and when I look at the properties of the subform for the comments field