Error: Different types for "?:" (? and void)

This error occures while compiling the following
code line:
straight * stra = new straight( p1, (p2 - p1).uvec3() );
the error doesn't appear if the code looks like:
unitvec3 uv = (p2-p1).uvec3();
straight * stra = new straight( p1, uv );
in a mailing list i found a thread dealing with
this error(mysql). They lead this error back to an
compiler bug in version 4.2. We are using
version 5.1 (Forte C++ 6). Is this an re-
appearing bug and is there a fix/patch ?
regards
Falko

I've encountered the same problem while using Forte 6 C++ 5.2 Update 1 on Solaris 2.8. It looks like a patch, 109508-05, is required to solve this problem. You can use Patch Finder to search the particular patch for your environment.
George.

Similar Messages

  • Effectv don't compile. error: conflicting types for 'trunc'

    hello all.
    i'm full newbie, so please, be kind
    I try to install effectv from AUR, but when i try to 'make' - i receive error:
    error: conflicting types for 'trunc'
    then i download sources and try to compile them - and again receive this error.
    Please advice, what should i do to correct this error?
    Thank you and sorry for my english.

    Please contact the author of the PKGBUILD to have it changed in the AUR. This fixes your issues:
    PKGBUILD
    # Contributor: Luiz Ribeiro <luizribeiro>
    pkgname=effectv
    pkgver=0.3.11
    pkgrel=1
    pkgdesc="EffecTV is a real-time video effector. You can watch TV or video through amazing effectors."
    url="http://effectv.sourceforge.net/"
    depends=('sdl')
    makedepends=('nasm')
    conflicts=()
    license=
    install=
    source=('http://jaist.dl.sourceforge.net/sourceforge/effectv/effectv-0.3.11.tar.gz'
    'gcc.patch' 'timedist.patch')
    md5sums=('71570b71009df0f1ff53e31de6f50cee')
    build() {
    cd $startdir/src/$pkgname-$pkgver
    patch -Np0 < $startdir/src/gcc.patch || return 1
    patch -Np0 < $startdir/src/timedist.patch || return 1
    sed -i -e 's_/usr/local_/usr_g' config.mk
    make || return 1
    mkdir -p $startdir/pkg/usr/bin
    mkdir -p $startdir/pkg/usr/man/man1
    make install INSTALL=/bin/install -c DESTDIR=$startdir/pkg || return 1
    gcc.patch : fixes compile problem
    --- utils.c.orig 2006-02-14 15:06:17.000000000 +0100
    +++ utils.c 2006-08-30 22:47:19.514145536 +0200
    @@ -26,7 +26,7 @@
    * HSI color system utilities
    -static int trunc(double f)
    +static int trunc_color(double f)
    int i;
    @@ -44,9 +44,9 @@
    Gv=1+S*sin(H);
    Bv=1+S*sin(H+2*M_PI/3);
    T=255.999*I/2;
    - *r=trunc(Rv*T);
    - *g=trunc(Gv*T);
    - *b=trunc(Bv*T);
    + *r=trunc_color(Rv*T);
    + *g=trunc_color(Gv*T);
    + *b=trunc_color(Bv*T);
    timedist.patch : fixes bug
    This is a quick fix for bugs of effectv-0.3.11. TimeDistortion has a border
    crossing bug and a buffer uninitializing bug.
    Index: effects/timedist.c
    ===================================================================
    --- effects/timedist.c (revision 478)
    +++ effects/timedist.c (working copy)
    @@ -27,7 +27,16 @@
    static int plane;
    static int *warptime[2];
    static int warptimeFrame;
    +static int bgIsSet;
    +static int setBackground(RGB32 *src)
    +{
    + image_bgset_y(src);
    + bgIsSet = 1;
    +
    + return 0;
    +}
    +
    effect *timeDistortionRegister(void)
    effect *entry;
    @@ -70,6 +79,7 @@
    plane = 0;
    image_set_threshold_y(MAGIC_THRESHOLD);
    + bgIsSet = 0;
    state = 1;
    return 0;
    @@ -94,6 +104,9 @@
    int *p, *q;
    memcpy(planetable[plane], src, PIXEL_SIZE * video_area);
    + if(!bgIsSet) {
    + setBackground(src);
    + }
    diff = image_bgsubtract_update_y(src);
    p = warptime[warptimeFrame ] + video_width + 1;
    @@ -109,7 +122,7 @@
    q += 2;
    - q = warptime[warptimeFrame ^ 1] + video_width + 1;
    + q = warptime[warptimeFrame ^ 1];
    for(i=0; i<video_area; i++) {
    if(*diff++) {
    *q = PLANES - 1;

  • Error: conflicting types for 'myFunctionOne'

    Hello,
    The LabWindows/CVI 2013 help page for C Language Extensions appears to show function overloading being supported in the C99 extensions:
     "Function Overloading in C | Yes"
    The table in the following link shows the same thing:
    http://digital.ni.com/public.nsf/allkb/73AEAD30C8AF681A86257BBB0054A26B
    I tried compiling a source file with the following overloaded function definitions with C99 extensions enabled in the Build Options:
     void myFunctionOne(double d) {
      printf ("Value = %f\n", d);
     void myFunctionOne(int d) {
      printf ("Value = %d\n", d);
    and I get the error:
     "conflicting types for 'myFunctionOne'
    Is function overloading truly supported, and if so, how does one enable it?
    Thanks,
    Mark B.
    Solved!
    Go to Solution.

    Hello Mark,
    You have to add __attribute__((overloadable)) at the definitions of the functions you want to overload.
    void __attribute__((overloadable)) myFunctionOne(double d) {
    printf ("Value = %f\n", d);
    void __attribute__((overloadable)) myFunctionOne(int d) {
    printf ("Value = %d\n", d);
    You can see an examples of clang extensions here.
    Constantin

  • Error:movement type for follow-on document missing

    Hello,
    Can anyone help me that i got the error message while creating the shopping cart from INTERNAL GOODS/SERVIES after adding the product id in the second step.
    Error :"movement type for follow-on document missing"

    i define BSA in ppoma_bbp as
    BSA: oneclnterp\nb
    and i define this number range Supplier Relationship Management ® SRM Server ® Cross-Application Basic Settings ® Number Ranges ® SRM Server Number Ranges ® Define Number Ranges for Shopping Carts and Follow-on Documents
    NO
    From Number
    To Number
    Current Number
    Ext
    Description
    (not in the table)
    01
    0010000000
    0019999999
    Shopping cart
    LO
    0020000000
    0029999999
    Faulty local PO
    PO
    4100000000
    4199999999
    Backend PO
    RQ
    0090000000
    0099999999
    Backend Purchase requisition
    RS
    9600000000
    9999999999
    Backend Reservation
    SE
    0200000000
    0209999999
    Backend Service PO

  • After Effects Installation error: Invalid Type Context

    I am currently working with Creative Cloud CS6 After Effects on a Windows 7 Toshiba Satellite, Core i3. I've been having trouble opening the program suddenly. I thought it might be due to a plug in which I had been trying to get working with both my After Effects and Premier (which works fine btw) to use to read a specific video coversion file (AVS). It didn't ever work so I unistalled all the plug ins I could find, uninstalled After Effects and reinstalled it. Then I started getting the error "Invalid type context" and AE would crash. I've uninstalled and re-installed twice and still cannot get AE past this error.
    Edit: Got a chance to write dow the info message after the error:
    "After Effects error: Crash in Progress. Last logged message was: <1588> <ae.blitpipe> <2> Making new context"
    I've looked for help in the FAQ and also done a couple searches in the forums, but found no topics about this type of error. Any thoughts?

    1. I've uninstalled all files pertaining to AVS conversion from my computer.
    2. I've given After effects full permissions through my windows firewall and McAffe too.
    3. I've reinstalled twice since my first post.
    4. I've stopped Adobe QT32 from running while AE loads.
    5. I've run the program as an administrator and tried running it configured for Vista OS.
    6. I've removed all preferences and cannot find any folder for AE preferences in my AppData folder.
    I'm still unable to keep the program from crashing as it initializes the user interface (farther along than before). I'm still getting the Invalid Type Context file. It brings up a save project option, which I haven't tried as I haven't gotten far enough along in AE to have any work to save.
    I did get this detail report in an attempt to diagnose the problem:
      C:\Users\Darci\AppData\Local\Temp\WER3C3.tmp.WERInternalMetadata.xml
      C:\Users\Darci\AppData\Local\Temp\WER2104.tmp.appcompat.txt
      C:\Users\Darci\AppData\Local\Temp\WER2EBB.tmp.mdmp
    I really need help as I'm at the end of all possible suggestions for this type of problem.

  • Unexpected type for field P

    Hi, i´m doing an app and in my device i want insert new row, the field is ZCANT, but when intent
    newValues[2] = "0000";
    worker.setFieldValue(sbdRowDesc.getFieldDescriptor("ZCANT"),newValues[2]);
    Appear this error:
    Unexpected type for field P
    What happend?
    Thanks,

    Hi Victor,
    What type of field is "ZCANT" ..i think you are assigning the wrong type of the value to this field.
    Regards,
    Rajan

  • Incomparable types: boolean and nulltype in jxl

    Hi,
    I'm trying to create excel workbook using jxl api, but i'm receiving following error message in one of my methods.
    import java.io.*;
    import java.util.*;
    import jxl.*;
    import jxl.Workbook;
    import jxl.write.*;
    import oracle.sql.ARRAY;
    import jxl.write.WritableSheet;
    public static String addColumnData(String p_filename,
    String p_SheetName,
    String p_numRowsToSkip,
    String p_xcoord,
    oracle.sql.ARRAY p_ColDataArray
    ) throws Exception
    WritableWorkbook wb = null;
    try
    int l_xcoord = Integer.parseInt(p_xcoord);
    File f = new File(p_filename);
    Workbook oldwb = Workbook.getWorkbook(f);
    wb = Workbook.createWorkbook(f,oldwb);
    WritableSheet lSheet = wb.getSheet(p_SheetName);
    if (lSheet != null & p_ColDataArray != null) {
    Object [] p_data = p_ColDataArray.getArray();
    for(int i =0;i< p_data.length;i++)
    String label = (String)p_data;
    int yCoord = i + Integer.parseInt(p_numRowsToSkip);
    Label l = new Label(l_xcoord,yCoord,label);
    lSheet.addCell(l);
    wb.write();
    wb.close();
    catch(Exception e)
    return e.getMessage();
    Error is at line "if (lSheet != null & p_ColDataArray != null)"
    Error message: incomparable types: boolean and <nulltype>
    Can someone please help!!
    Thanks in advance!

    import java.io.*;
    import java.util.*;
    import jxl.*;
    import jxl.Workbook;
    import jxl.write.*;
    import oracle.sql.ARRAY;
    import jxl.write.WritableSheet;
    public class SExcel
      private static String success = "0";
      public SExcel ()
      public static String addColumnData(String p_filename,
                                           String p_SheetName,
                                           String p_numRowsToSkip,
                                           String p_xcoord,
                                           oracle.sql.ARRAY p_ColDataArray
                                          ) throws Exception
          WritableWorkbook wb = null;
       try
           int l_xcoord = Integer.parseInt(p_xcoord);
           File f = new File(p_filename);
           Workbook oldwb = Workbook.getWorkbook(f);
           wb =  Workbook.createWorkbook(f,oldwb);
           WritableSheet lSheet = wb.getSheet(p_SheetName);
           if (lSheet != null && p_ColDataArray != null) {
             Object [] p_data  =  p_ColDataArray.getArray();     
             for(int i =0;i< p_data.length;i++)
               String label = p_data;
    int yCoord = i + Integer.parseInt(p_numRowsToSkip);
    Label l = new Label(l_xcoord,yCoord,label);
    lSheet.addCell(l);
    wb.write();
    return success;
    catch(Exception e)
    return e.getMessage();
    Error: incomparable types: boolean and <nulltype>
    at if (lSheet != null && p_ColDataArray != null)
    Thanks,

  • The workflow could not update the item, possibly because one or more columns for the item require a different type of information. Outcome: Unknown Error

    Received this error (The workflow could not update the item, possibly because one or more columns for the item require a different type of information.) recently on a workflow that was
    working fine and no changes were made to the workflow.
    I have tried a few suggestions, i.e. adding a pause before any ‘Update’ action (which didn’t help because the workflow past this action without incident); checked the data type being written
    to the fields (the correct data types are being written); and we even checked the list schema to ensure the list names and the internal names are aligned (they
    are), but we still cannot figure out why the workflow is still throwing this error.
    We located the area within the workflow step where it is failing and we inserted a logging action to determine if the workflow would execute the logging action but it did not, but wrote the same error message.
    The workflow is a Reusable Approval workflow designed in SharePoint Designer 2010 and attached to a content type. 
    The form associated with the list was modified in InfoPath 2010. 
    Approvers would provide their approval in the InfoPath form which is then read by the workflow.
    Side note - items created after the workflow throws this Unknown Error some seem to be working fine. 
    We have deleted the item in question and re-added it with no effect. 
    Based on what we were able to determine there don’t seem to be any consistency with how this issue is behaving.
    Any suggestions on how to further investigate this issue in order to find the root cause would be greatly appreciated?
    Cheers

    Hi,
    I understand that the reusable workflow doesn’t work properly now. Have you tried to remove the Update list item action to see whether the workflow can run without issue?
    If the workflow runs perfectly when the Update list item action is removed, then you need to check whether there are errors in the update action. Check whether the values have been changed.
    Thanks,
    Entan Ming
    Entan Ming
    TechNet Community Support

  • I have burned CDs before from 2gb to 7gb using different types of discs. Now I get this error message Apple error The disc can't be burned because communication between the computer and the disc drive failed (error code 0x80020022). What should I do

    I have burned CDs before from 2gb to 7gb using different types of discs. Now I get this error message Apple error The disc can't be burned because communication between the computer and the disc drive failed (error code 0x80020022). What should I do

    Reset the SMC, as per > Resetting the System Management Controller (SMC)
    1. Shut down the computer.
    2. Unplug the computer's power cord.
    3. Wait fifteen seconds.
    4. Attach the computer's power cord.
    5. Wait five seconds, then press the power button to turn on the computer.
    Then zap the PRAM/NVRAM as per > About NVRAM and PRAM
    1. Shut down the computer.
    2. Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    3. Turn on the computer.
    4. Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    5. Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    6. Release the keys.
    Then retry the Disc Drive.

  • BAPI error for mvmt types 201 and 202

    Hi all,
      I'm using a bapi BAPI_GOODSMVT_CREATE for the movement type 201 and 202 with the gm_code = '03' for the transaction mb11- Goods movement. But it returns an error u201D Account 400000 requires an assignment to a CO object u201D...I'm unable to resolve this one....I have attached the code below. Please help me in fixing this issue...
    if sy-subrc = 0.
      loop at it_mchb into wa_mchb.
        if wa_mchb-clabs gt 0.
          clear wa_header.
          wa_header-pstng_date = sy-datum.          " fill header data
          wa_header-doc_date   = sy-datum.
          wa_code-gm_code      = '03'.              "fill code data
          clear wa_item.
          wa_item-material     = wa_mchb-matnr.     " fillitem data
          wa_item-plant        = wa_mchb-werks.
          wa_item-stge_loc     = wa_mchb-lgort.
          wa_item-batch        = wa_mchb-charg.
          wa_item-entry_qnt    = wa_mchb-clabs.
          wa_item-move_type    = '201'.
                       wa_item-entry_uom    = wa_mchb-meins.
          append wa_item to it_item.
        elseif wa_mchb-clabs lt 0.
          clear wa_header.
          wa_header-pstng_date = sy-datum.          " fill header data
          wa_header-doc_date   = sy-datum.
          wa_code-gm_code      = '03'.              "fill code data
          clear wa_item.
          wa_item-material     = wa_mchb-matnr.     " fillitem data
          wa_item-plant        = wa_mchb-werks.
          wa_item-stge_loc     = wa_mchb-lgort.
          wa_item-batch        = wa_mchb-charg.
          wa_item-entry_qnt    = wa_mchb-clabs.
          wa_item-move_type    = '202'.
                       wa_item-entry_uom    = wa_mchb-meins.
          append wa_item to it_item.
        endif.
      endloop.
      clear lv_lin.
      describe table it_item lines lv_lin.
      if lv_lin = 0.
        write : / 'No records found'.
      endif.
      call function 'BAPI_GOODSMVT_CREATE'
        exporting
          goodsmvt_header  = wa_header
          goodsmvt_code    = wa_code
        importing
          materialdocument = lv_matdoc
        tables
          goodsmvt_item    = it_item
          return           = it_return.
      if it_return is initial.        " if record created successfully
        call function 'BAPI_TRANSACTION_COMMIT'. " commit work
        write : / lv_matdoc, 'IS CREATED SUCCESSFULLY' color 5.
        loop at it_item into wa_item.
          write : / 'Mat :', wa_item-material,'bat :', wa_item-batch.
        endloop.
      else.                           " if record is not created successfylly
        loop at it_return into wa_return.
          write : / wa_return-message color 6.
        endloop.
        uline.
      endif.
    else.
      write : / 'No Records found' color 7.
    endif. " gt_s035 is not initial
    Edited by: Arunmozhi_06 on May 30, 2011 12:48 PM

    Hi,
       Did you passing the leading 0's in the cost center field?
    and check the below coding..
    * Structures for BAPI
      data: gm_header  type bapi2017_gm_head_01.
      data: gm_code    type bapi2017_gm_code.
      data: gm_headret type bapi2017_gm_head_ret.
      data: gm_item    type table of
                       bapi2017_gm_item_create with header line.
      data: gm_return  type bapiret2 occurs 0.
      data: gm_retmtd  type bapi2017_gm_head_ret-mat_doc.
      clear: gm_return, gm_retmtd. refresh gm_return.
      perform show_status using 'Scrapping(551) Material'.
    * Setup BAPI header data.
      gm_header-pstng_date = sy-datum.
      gm_header-doc_date   = sy-datum.
      gm_code-gm_code      = '06'.                              " MB11
    * Write 551 movement to table
      clear gm_item.
      move '551'        to gm_item-move_type     .
      move xresb-matnr  to gm_item-material.
      move p_bdmng      to gm_item-entry_qnt.
      move xresb-meins  to gm_item-entry_uom.
      move xresb-werks  to gm_item-plant.
      move xresb-lgort  to gm_item-stge_loc.
      move p_grund      to gm_item-move_reas.
    * Determine cost center per plant
      case xresb-werks.
        when '0004'.
          move '0000041430' to gm_item-costcenter."pass leading zero's in the cost center field
        when '0006'.
          move '0000041630' to gm_item-costcenter.
        when '0007'.
          move '0000041731' to gm_item-costcenter.
        when '0008'.
          move '0000041830' to gm_item-costcenter.
      endcase.
      append gm_item.
    * Call goods movement BAPI
      call function 'BAPI_GOODSMVT_CREATE'
           EXPORTING
                goodsmvt_header  = gm_header
                goodsmvt_code    = gm_code
           IMPORTING
                goodsmvt_headret = gm_headret
                materialdocument = gm_retmtd
           TABLES
                goodsmvt_item    = gm_item
                return           = gm_return.
    Maybe there is some config missing for your cost center, or maybe something missing in your code. check above.
    Regards,
    Dhina,..
    Edited by: Dhina DMD on May 31, 2011 8:02 AM

  • Different Consumption Account for Movement type 201 and 261

    Dear All ;
    Client want use different consumption account for movement type 201 and 261  .
    How we canmap this in SAP
    Kindly suggest .
    Regards;
    Joydeep Mukherjee

    This you can acheive by setting account assignment indicator is checked.
    OMJJ >>> Movement Type >>>Account Grouping >>Check account Assignment
    If this indicator is set, the system checks whether a G/L account or an account assignment has been specified on the item screen when user post transactional data. If so, the system copies this data to the posting line for account determination.
    If this indicator is not set, the system always uses the G/L accounts or account assignments determined automatically.

  • MRP type for two different types requirments( Sale order and PIRs)

    Dear All,
    We have requirment  some materials we have sales order and PIRs. For sales order we want to consider with "MRP type" as PD and PIR we want to consider "MRP type" as VB manual reorder point planning.
    Is there any stadard  solution.
    If standard solution not possible also poivde some inputs on enhancement.
    Regards
    Sailendra
    Edited by: nivedita yadav on May 7, 2010 2:31 PM

    Sailendra,
    your post is confusing, how you want to different MRP type for same material?
    and why its needed?
    1) you can use MRP type PD , and incoming sales order will search in existing stock or will create procurement proposal ( depends upon what strategy you are using)
    2) If you  are using VB then when ever you stock will fall below the reorder point you maintained in material master , system will create new procurement proposal, here the manual means the value you need to maintained manualy for reorder point and safety stock.
    In automatic reorder point planning, both the reorder level and the safety stock level are determined by the integrated forecasting program.
    The system uses past consumption data (historical data) to forecast future requirements. The system then uses these forecast values to calculate the reorder level and the safety stock level, taking the service level, which is specified by the MRP controller, and the material's replenishment lead time into account, and transfers them to the material master.
    hope it will help you.
    Regards
    Ritesh

  • Different movt. types for GR against Purchase order and GR against Prd. Ord

    All SAP Gurus,
    Is it possible to have Different movement types for GR against Purchase order and GR against Production Order?
    Regards,

    yes my friend ,
    I dont know abt 131 movement type,i think so it is related to RUN SCHEDULE HEADER(rep scenario),order type is different to that in discrete.
    But you can do one thing for sure,you can try to create a new movement type copy of 101,and make MIGO allowed for the movement type,and you can easily distinguish between two movement type used for receipt two different functions....
    Plz correct me
    Enjoy SAP
    Rahul..

  • Different Exchange Rate Type for Vendors and Customers Invoices

    Dear Friends,
    We have configured different exchange rate types for Accounts Payable and Accounts Receivable thru T Code OB07. What are the additional Config steps required to ensure that the respective buying and selling rates will apply to Accounts Payables and Receivables. We do not want to stipulate the exchange rate types in Document Types as this special exchange rates are applicable only for one of the Company Codes.
    Would appreciate your help in this regard.
    Regards,

    Hi,
    Then you can use a different document type for those company codes and can default the exchange rate type there.
    OR,
    The alternative wya is to use the substitution in OBBH/ GGB1 for those company codes with exit programming.
    Regards,
    SDNer

  • HT3702 when I finish putting my card details in, I press next and then it says an error occurred!(above the different type of cards) some one pls help

    when I finish putting my card details in, I press next and then it says an error occurred!(above the different type of cards) some one pls help!

    when I finish putting my card details in, I press next and then it says an error occurred!(above the different type of cards) some one pls help!

Maybe you are looking for

  • Mail dead on upgrade to 10.5.6

    I just upgraded my G4 Powermac from 10.4.11 to 10.5.6, using the Mac pack which provides the new OS, iWork and iLife. I chose to archive and upgrade, and everything seems to be working except Mail, which doesn't open a window without my opening it fr

  • How do I set up genius mixes on my iPhone with iTunes match

    I have used genius mixes on my phone, but now that I have iTunes match I no longer see the controls for turning on the genius mixes for my phone.  How do I do that?

  • Help! Sony S560 Bluray + WRT54G router

    Hello - I just bought the Sony S560 Bluray player and is connecting wirelessly (with the built-in WiFi) to my old Linksys WRT54GS router on my home network.  I used Sony's automatic setup (picking my access point using my SSID, automatic IP address/s

  • Compiled language with similar feel to php?

    I have written several utilities for my album program in php, but this means that if I give them to anyone else they have to install php before they can use them on their own computers. I have never used C++, but the philosophy behind php seems to be

  • When i buy a iphone should i charge it when i open it or use it until the battary runs out and then charge it?

    i recently bought an iphone 4s. when i turned it on the battery was full. my question is that: sould i use it until the battery runs out and charge it normally or dont play with it and charge it for some hours because its the first time?